prevent-default-form

1.1.1 • Public • Published

PreventDefaultForm

React component that helps you to preventDefault on form submit

Usage

Voila! 🌸

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

Package Sidebar

Install

npm i prevent-default-form

Weekly Downloads

13

Version

1.1.1

License

SEE LICENSE IN LICENSE.md

Last publish

Collaborators

  • rusinov