Why is my react component not updating with state updates?
问题 I have a map app I built that requires some map icons to appear/disappear after a button press, but I can't figure out how to set it to re-render the component when I pass in a new sports property from it's parents component : Parent loads component: <SimpleMap sports=[default value and future values go here] /> Simple map component(simplified): constructor(props) { (props); this.state = { events: [{venue: {lat: 2, lon: 1}}], sports: ["baseball", "football", "paddle", "soccer", "boxing",