A simple quistion and answer app that connect to dummy api service (json-server). (self learn purpose). tags: useReducer.
- learn about useReducer vs useState
- implement full useReducer
- use json-server as fake api service
- there's some problem this useReducer has setInterval that can trigger re-render all the children every 1 second. I will improve it later.
# Getting Started with Create React App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `npm run start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
The page will reload when you make changes.\
You may also see any lint errors in the console.
### `npm run server`
Runs the fake api service
Open [http://localhost:8000](http://localhost:8000) to view it in your browser.
### `npm run build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.