Lazy state initialization with React
Jan 12, 2021 · 5 min read · 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 ...
RRichy commented



