1.0.0-alpha4 • Published 4 years ago
storeonize v1.0.0-alpha4
storeonize
easy way to migrate from Redux to Storeon
how to
npm i -S storeonize
just add storeonize
to your imports
// before
import { createStore, applyMiddleware } from 'redux'
// after
import { createStore, applyMiddleware } from 'storeonize/redux'
what things can be storeonized?
redux
- createStore
- applyMiddleware
- combineReducers
redux-logger
- createLogger
redux-devtools-extension
- composeWithDevTools
react-redux
- Provider
- connect
alert!
combineReducers
is not the same as redux's
the only arguments is a map:
combineReducers({
someReducerName: [reducerFunction, [array of connected actions]
})
faq
Storeonize just swaps Redux with Storeon. How can I start coding in Storeon style?
First of all, you can use your own modules passing them to applyMiddlware
.
I suggest you to start rewriting code in this way: reducers, then middlewares.
todo
- typings
- other redux-stuff
1.0.0-alpha4
4 years ago
1.0.0-alpha3
4 years ago
1.0.0-alpha1
4 years ago
1.0.0-alpha2
4 years ago
0.0.1
4 years ago