Skip to the content.

useState() Hook

Review, Research, and Discussion

How does React differ from vanilla JS/HTML/CSS?

What is the primary difference between a function component and a class component?

Document the following Vocabulary Terms

Functional Components : react components that use normal functions instead of classes.

Children / Child Components : any component that renderd and imported inside another component called child and the parent will be the other component that recieved the child one.

Preparation Materials

making sense of hooks

the state hook

hooks api

Rules of using Hooks :

1. only call hooks at the top level; not inside loops, conditions, and nested functions.

2. only call hooks inside React functional components; not inside normal javascript functions.

hooks api reference