Skip to content

v3.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Jun 16:35
· 42 commits to main since this release
d62b0cf

What's Changed

💥 Breaking Change

  • How to migrate from v2 to v3 by @Randagio13 in #26

    Import the useRapidForm hook from rapid-form package.

    -  import useRapidForm from 'rapid-form';
    
    +  import { useRapidForm } from 'rapid-form';

    Replace the handleSubmit, reset, and submitValidation functions with the refValidation function.

    -  const { validation, handleSubmit, reset, submitValidation } = useRapidForm();
    
    +  const { refValidation } = useRapidForm();

    Use the refValidation function to validate the form fields.

    -  <input name="username" ref={validation} required />
    
    + <form ref={(ref) => refValidation(ref)}>
    +   <input name="username" required />
    + </form>

🐛 Bug Fix

📝 Documentation

Full Changelog: v2.1.0...v3.0.0