<h1 align="center"> React-Int(egrity) </h1>
npm install react-intA simple way to use [react][0] with [react-redux][1] and [redux-saga][2]. Keep most things in one file(model) like [Dva][3].
- Reducers and sagas in one file.
- Namespace.
- Key as action type. (Convenient)
- HMR everywhere. (Need extra code snippet)
- Promisified dispatch.
- Handles Effect errors without terminating app.
- Works with [create-react-app][4].
Feel free to make an issue or a pull request.
react-int is an encapsulation of react-redux and redux-saga, aiming to simplify code and related files. Its main job is to create store from models and render app.
yarn add react-redux redux-saga react-int
# or
npm i react-redux redux-saga react-int
Start app, write models and connect components. That's all. :tada:
``javascript
// index.js
import start from "react-int";
import App from "./App";
import models from "./models";
const { updateApp, updateModels } = start(
App,
document.getElementById("root"),
models,
{/ options /},
);
// enable HMR
if (module.hot && process.env.NODE_ENV !== 'production') {
module.hot.accept('./App', () => updateApp(App));
module.hot.accept('./models', () => updateModels(models));
}
``
- Full online demo: 
- APIs
Basic introduction can be found on the website.
Refer to [react][0], [react-redux][1], [redux-saga][2] for further documentation.
See Development.
[0]: https://github.com/facebook/react
[1]: https://github.com/reduxjs/react-redux
[2]: https://github.com/redux-saga/redux-saga
[3]: https://github.com/dvajs/dva
[4]: https://github.com/facebook/create-react-app