Course
summary


    0 chapters available

Loading...

Create a modern web application with React

Difficulty: Junior ● Progress: 0 / 0 modules completed

Creating reactive variables (states)

Now that you know how to react to events, it's time to make your application interactive and reactive. In React, one of the most powerful things is state management.

A state is a variable that can change over time, and whose modification triggers an automatic update of the user interface.

Let's see how to manage a state in React with the useState hook.

Creating a state (useState)

To use state in a functional component, React provides us with the useState hook. It allows us to declare a state variable and modify it.

You need to purchase this course to read this module!

Or !