Question · React Native course · Module 4: State and API data
useState initialization
How do you correctly initialize useState with an initial value?
Answer options
- useState = 0
- useState(0)
- useState: 0
- useState[0]
You can check the correct answer by solving this task in the CodeWorlds game.