Skip to content

Commit

Permalink
Small change in README
Browse files Browse the repository at this point in the history
  • Loading branch information
mattp94 committed Sep 23, 2018
1 parent f3a2e17 commit 665d1b1
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions README.md
Expand Up @@ -185,25 +185,24 @@ class Example extends Component {
<div>
<ValidationIn
error="err"
groups={["form"]}
groups={['form']}
helper="msg"
validators={[
{
rule: value => value,
hint: 'Required'
},
{
rule: value => /^\d+$/.test(value),
hint: 'Only numbers'
}
]}
validators={[{
rule: value => value,
hint: 'Required'
}, {
rule: value => /^\d+$/.test(value),
hint: 'Only numbers'
}]}
value="val">
<Input
onChange={this.handleChange}
val={this.state.value}
/>
</ValidationIn>
<button onClick={this.handleClick}>Validate</button>
<button onClick={this.handleClick}>
Validate
</button>
</div>
)
}
Expand Down

0 comments on commit 665d1b1

Please sign in to comment.