Learn how to make React components and render some markup from them. Learn how to declare and update state in React.
Learn how to import components from different files. Understand what are props and how they can be passed from one component to its children components.
If you already know how to use React class components then check this video to learn how to convert a class component to hooked function component.
This happens when you don't import useState
from React npm package. Make sure
that the following code snippet is present in the playground.js file.
import { useState } from 'react';
For the tests to work you need to use the helper components present in the components.js file. For your ease, they were already imported in the playground.js file.