Awesome
A Push-Based Functional Reactive Web Application Framework
Nux combines redux, virtual-dom, and immutable-js into a framework that enables the creation of applications whose entire state, UI included, lives in one large immutable object which can only be modified by creating a new state from provided reducer functions. Nux is not just another framework for binding application data to UI templates - it cuts out the middle man by treating UI and application data as one, single object, thus guaranteeing perfect agreement on state throughout an application's lifecycle. Nux can run on the client, on the server, or even in web workers to provide blazing fast rendering.
Try the simple example todo app
Try the example TodoMVC app
Read the documentation
Example
import {init} from './src/index';
// initialize your app with a reducer, the only concern that modifies your app's state
let helloWorld = init((state, action) => {
switch (action.type) {
case 'SUBMIT_STATEMENT':
const inputVal = state.$('ui div#hw input').props('value');
return state.$('ui div#hw h5 $text', inputVal)
.$('ui div#hw input').props('value', '');
}
return state;
});
// pass an initial UI object to the app to start it up
helloWorld({
'div#hw': {
'h5': {
},
'input': {
props: {
placeholder: 'type and hit enter..',
events: {
'ev-keyup-13': {
dispatch: {
type: 'SUBMIT_STATEMENT'
}
}
}
}
}
}
});