Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

laststance/redux-middleware-less-architecture

Repository files navigation

⚠️ OUTDATED

The repo was created at before React Redux Hooks. So almost code were little bit older style and could be useless today.

Redux Middleware Less Architecture

CircleCI PRs Welcome tested with jest code style: prettier All Contributors

🍷 write redux application from middleware less.

What's this?

RBLA is the code example of write React/Redux application from middleware less. This is create-react-app based, please refer /src folder.

Concept

Redux fundamental is pretty simple.
And you can also feel free to apply redux stuff, Dan mentioned at dev.to.
But typically actual Redux application codebase tend to bocome too complicated.

I guess that because doesn't match Redux fandamental(dispatch action -> resolve reducer -> update state) and actual codebase(excess middlewares, boilerplate, spliting file etc).

The problem is only influenced which way to how to scaling huge application, except for minimal understandable Redux usage.

This repo suggestion to you straightforword Redux application coding style, without Middleware,Boilerpate,Advanced Liblary.

But remember, the suggestion only targeting small aplication.
If your application will grow up to huge, I strongly reccomend read through Idiomatic Redux by Mark Erikson.

Requirements

Specific Concepts

Libraries not adopted

Too complicated for me when launch project.

  • redux-saga: Every things occuring in middleware. It's not Redux concern.
  • normalizr: I can't imagine nomalized data structure immediately.
  • redux-persist: Using LocalStoarage directly instead.

Example

CodeSandbox Available 🎉

Inspiration

Contributors

Thanks goes to these wonderful people (emoji key):


ryota-murakami

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT