Course contentsShow
React
Lesson 357 of 2,39610. useState BasicsPro lesson

Lazy Initial State with a Function

Pass a function to useState to compute initial state only once on mount.

This lesson is for subscribers

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