This project was created for studying porpuses.
https://romualdo-ah.github.io/react_reducer_example
File DataFetching.js was created and used a reducer function and a component named DataFetching.js. This component uses an external API to make POST, GET, and DELETE requests.
https://jsonplaceholder.typicode.com
The goal of this project is to show an alternative to clean up the DataFetching component by separating the state handling on a external function (reducer), and share some global states between other components.
Deployed with 🐙😼Github pages This project was bootstrapped with Create React App.