monarc

MONARC's Obviously Not A Redux Clone.

Usage no npm install needed!

<script type="module">
  import monarc from 'https://cdn.skypack.dev/monarc';
</script>

README

MONARC 🦋

MONARC's Obviously Not A Redux Clone.

MONARC is a store intended for React applications, based on the new Context API and useContext / useReducer hooks.

It can be extended with your own plugins, with a couple included to provide two advanced features: undo / redo management and auto-save. There is also a plugin to connect your application to the Redux DevTools. All of these features can be enabled on demand.

MONARC also provides some features to help migrating applications using the Flux ReduceStore / Container pattern, so you won't have to rewrite your application from scratch.

npm version npm downloads

Installation

MONARC is available as a package on NPM for use with a module bundler.

# NPM
npm install monarc

# Yarn
yarn add monarc

Motivation

This project was born as an alternative to Facebook's Flux state management. My company's React applications were based on Flux, which uses a deprecated React method that will stop working sooner or later. Since Flux seems no longer actively maintained, it is probably wise to start thinking about an escape path before it's too late.

MONARC has already successfully replaced Flux and is being used in production on old and new applications.

Documentation

TODO

  • Improve documentation
  • Add a demo application
  • More tests!

Licence

MIT