react-validation-provider
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "react-validation-provider", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "React validation component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -18,3 +18,3 @@ # React Validation Provider | ||
``` | ||
import { validationComponent } from 'reaect-validation-provider'; | ||
import { validationComponent } from 'react-validation-provider'; | ||
@@ -33,3 +33,3 @@ @validationComponent | ||
//alternative without using decorator | ||
import { validationComponent } from 'reaect-validation-provider'; | ||
import { validationComponent } from 'react-validation-provider'; | ||
@@ -88,5 +88,7 @@ class TextInput extends React.Component { | ||
return( | ||
//form elements here | ||
<div> | ||
//form elements here | ||
<button disabled={!this.props.isValid} onClick={() => this.submitMyForm()}>Submit</button> | ||
<button disabled={!this.props.isValid} onClick={() => this.submitMyForm()}>Submit</button> | ||
</div> | ||
); | ||
@@ -93,0 +95,0 @@ |
14412
97