alt-form
Manages your forms with alt. Uses flux-form
for all the heavy lifting.
const form = Component { superprops thisstate = form } // Please don't connect stores yourself, use something like // https://github.com/altjs/react which connects your stores automatically { thisunlisten = formstore } { this } { return <div> <label className="quarter" htmlFor="Company Name">Company Name</label> <input type="input" placeholder="Name" ...thisstatepropsname /> <input type="button" onClick=thisstatesave /> </div> }
<EditName initialName="Jane" />
This allows you to edit a name. altForm
will return you an Alt store which
keeps track of all the edits made and handles listening to the actions for you.