Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "formerly", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "yet another form abstraction library for react", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -23,2 +23,13 @@ #React Form Thing | ||
<label>Your usual password</label> | ||
<Input type='password' name='password' /> | ||
<label>Repeat your password</label> | ||
<Input type='password' name='repeatPassword' /> | ||
<!-- ~~Exotic~~ --> | ||
<OnValue in={['password', 'repeatPassword']} test={({password, repeatPassword}) => password === repeatPassword}> | ||
Congratulations, you can type | ||
</OnValue> | ||
<Entity name='addresses'> | ||
@@ -65,3 +76,3 @@ | ||
import {render} from 'react-dom' | ||
import {Form, Select, OnError, Input, Entity} from 'react-form-thing' | ||
import {Form, Select, OnError, OnValue, Input, Entity} from 'react-form-thing' | ||
@@ -68,0 +79,0 @@ const NewsletterForm = createClass({ |
28239
123