Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

render and mount functional component

// React starts renders our component and since this is the
// first render, it "mounts" the component to the DOM:
App()

// Then state changes and React now needs to re-render the
// component with the new state in place:
App()

// State changes again, React re-renders again:
App()
Source by reacttraining.com #
 
PREVIOUS NEXT
Tagged: #render #mount #functional #component
ADD COMMENT
Topic
Name
3+5 =