A simple way to understand how to get data from an API with useEffect React hook in 2 ways. First with axios and then with fetch packages.
Next JS and React app use effect hook
Run yard //to get the packages
To run development server yarn dev
To build yarn build