Instead of making simple todolist, I tried to create "real" Redux app that manages all data with React, JS, and Redux Toolkit. Soon I'll make it to Typescript version. I already learned and used ContextAPI on this repo and I think it's time to scale up with other state management!
- Redux Toolkit - Tech.
To use this repo run :
npm install
npm start
npm json-server --watch data/db.json --port 8000
-
Because I want to use API but I don't want to waste time on making an API, I use a library called json-server to make an virtual API based on JSON
-
I make a file in data/db.json to store all data of virtual API
-
A piece of code to make connection to virtual API to port 8000
-
This code create a store that contains store nane, store data, and method to edit store data