November 2018
Beginner
502 pages
10h 22m
English
We can invoke code to execute at certain points in a function component's life cycle. Let's explore this in our Confirm component, starting with when the component is first rendering, as follows:
const [cancelClickCount, setCancelClickCount] = React.useState(0);React.useEffect(() => { console.log("Confirm first rendering");}, []);
Read now
Unlock full access