Lazy state initialization with React
If you are familiar with the useState hook in React, you know that it's a function that's called each time our component renders. The function returns an array of two values, and we usually use JavaScript destructuring to both declare a variable for ...
Jan 12, 20215 min read91
