1.0.0-alpha4 • Published 4 years ago

storeonize v1.0.0-alpha4

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

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