Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PreventDefaultForm

React component that helps you to preventDefault on form submit

Installation

npm install --save prevent-default-form
or
yarn add prevent-default-form

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages