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
.then((response) => { this.setState({events: resp}); }
You take in parameter response then try to use resp which isnt the variable you want.
response
resp