prevent-default-form
v1.1.1
Published
form that has preventDefault on submit already
Downloads
18
Maintainers
Readme
PreventDefaultForm
React component that helps you to preventDefault on form submit
Usage
Voila! :cherry_blossom:
import PreventDefaultForm from 'prevent-default-form'
class MyWonderfulFormComponent extends Component {
render() {
return (
<PreventDefaultForm onSubmit={ this._submitMyForm }>
<input type='email' name='email'/>
<input type='password' name='password'/>
</PreventDefaultForm>
)
}
}
License
See LICENSE.md