Scroll to the top of the page after render in react.js
Since the original solution was provided for very early version of react, here is an update:
Since the original solution was provided for very early version of react, here is an update:
I am trying to set up my React.js app so that it only renders if a variable I have set is true. The way my render function is set up looks like: Basically, the important portion here is the if(this.state.submitted==false) portion (I want these div elements to show up when the submitted variable is set to false). But when running this, I get … Read more