Course contentsShow
React
Lesson 387 of 2,39611. useState Patterns and PitfallsPro lesson

What is Lazy Initialization?

Learn why passing a function to useState defers expensive initial state computation until the component mounts.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.