TodoMVC
Usage
git clone https://github.com/traveloka/soya-next.git
cd soya-next/examples/todomvcnpm install
npm startHow It Works
import { createPage } from 'soya-next';
const reducers = {
uniqueName(state, action) {
return state;
},
};
const Page = () => {};
Page.getIntialProps = ({ store }) => {
// you can dispatch any actions here
// store.dispatch(actionCreator());
// or get current store state
// store.getState()
};
export default createPage(mapStateToProps, mapDispatchToProps)(Page, reducers);Last updated