React
Introduction to React Hooks - useState()

useState() Wrap Up Challenge

PRO
Outline

A challenge that encapsulates the content of this section.

So far you've:

✅ Converted class-based components into functional components

✅ You've found that you can still manage state inside functional components by using the useState hook

✅ Learned that you can implement the useState hook for multiple pieces of state, making your code more explicit.

Now let's put all your new skills to the test with another challenge!! More specifically, in your ice cream store app:

1️⃣ Convert class-based component into a functional component

2️⃣ Implement the useState hook instead of the setState method

3️⃣ Separate the state into logical pieces by category

You can access the code for this challenge on StackBlitz

DON'T SKIP THE EXERCISES! You won't really build your skills by just skipping to the solution videos!

Have fun :)

 

I finished! On to the next chapter