Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pvamshi/use-reducer-redux-demo
A demo app to showcase how to achieve Flux architecture with 'useReducer'
https://github.com/pvamshi/use-reducer-redux-demo
Last synced: 30 days ago
JSON representation
A demo app to showcase how to achieve Flux architecture with 'useReducer'
- Host: GitHub
- URL: https://github.com/pvamshi/use-reducer-redux-demo
- Owner: pvamshi
- Created: 2019-10-07T07:20:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T08:28:51.000Z (about 2 years ago)
- Last Synced: 2024-10-22T21:24:09.981Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 717 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# use-reducer-redux-demo
A demo app to showcase how to achieve Flux architecture with `useReducer`## Run the app
### Clone the project
```
git clone https://github.com/pvamshi/use-reducer-redux-demo.git
```### Prepare
```
yarn
```
or
```
npm install
```### Play
Try out with the mock server
```
yarn start:mock
```
or
```
npm run start:mock
```### Test
Visit [http://localhost:1234](http://localhost:1234)
Open console to check the logs being printed out.
## Motivation
This is to evaluate if we can emulate redux with thunk, logger etc without using any third party libraries. This is possible using React hooks . This is just POC, so you wont find tests and there might be million bugs 😁.