biro-material-ui
material-ui library for biro
install
Install the module to your project:
$ npm install biro-material-ui --save
usage
It is assumed that you will be using the material-ui
module in your project.
const SCHEMA = 'firstname' // this is turned into {type:'text',name:'firstname'} 'surname' 'email' type:'text' name:'phone' { return val ? null : 'invalid phone number' } const FORM_UPDATE = 'FORM_UPDATE' { return type:FORM_UPDATE data:data meta:meta } const initialState = data:{} meta:null const reducer = const finalCreateStore = createStore const store = { return <Biro data=thispropsdata meta=thispropsmeta schema=SCHEMA update=thispropsupdate library=muiLibrary layout=muiLayout /> } { return data:stateformdata meta:stateformmeta } { return { } } var FormContainer = MyForm ReactDOM
license
MIT