shlux

0.1.4 • Public • Published

Shlux Build Status

Like Flux but simpler

Uses Immutable.js to store the state of the whole app, and when something changed in the store just triggers change event

Installation

npm install immutable shlux

Example

import ReactDOM from 'react-dom'
import Store from 'shlux'
 
const store = new Store()
 
store.on('change', (props) => {
    ReactDOM.render(<App {...props} />, document.getElementById('app'))
})

/shlux/

    Package Sidebar

    Install

    npm i shlux

    Weekly Downloads

    15

    Version

    0.1.4

    License

    ISC

    Last publish

    Collaborators

    • dolbyzerr