Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 592 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 592 Bytes

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'))
})