With a functional component, we can use React hooks, specifically the useState() hook. This simplifies the creation of a state component and the function that updates it. … setState we use the function we created in the useState , in this case, setValue .