Lesson 75
useState Hook to Show or Hide Text in React Native
The lecture goes over how to use the hook useState to keep track of a boolean value.
You can use hooks in React Native just like you do in React for the web.
You learn how to conditionally render content such as text using the state variable and clicking a button to show or hide the content.
When you tell React to keep track of a value in the state, it will know that when you mutate it, the component will be re-rendered.
No comments yet (loading...)
No comments yet (loading...)
Did you like the lesson? 😆👍
Consider a donation to support our work: