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

Setting Initial State with a Value

Pass a value directly to useState to set initial state on component mount.

This lesson is for subscribers

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