Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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'

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 😁.