React
Introduction to React Hooks - useState()

Organizing State Exercise

Outline

Keep your code clean with useState()

Now it's your turn to implement the useState hook into some code. Click the Stackblitz link below to access some starter code for this exercise:

https://stackblitz.com/edit/reacthooks-2-usestate-ido

Exercise Instructions:

1️⃣ Convert the class declaration into an arrow function and pass props

2️⃣ Convert methods into arrow functions and all properties into assigned variables

3️⃣ Remove the render function

4️⃣ Remove all references to 'this'

Remember that you can't TRULY learn unless you take the time to practice on your own! Don't just skip to the solution without practicing first on your own.

 

I finished! On to the next chapter