0.1.1 • Published 2 years ago

@swordsweeper/react-forms v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Disclaimer

This package is in development and should not be considered stable yet.

Description

This is a set of common form components and patterns used in projects built by Swordsweeper industries. This library strives to balance flexibility with ease of use.

Basic example (Hooks)

import {useFormHandlers, Input} from "@swordsweeper/react-forms";

export default function ExampleForm(props) {
    const {formData, handleUpdate} = useFormHandlers();
    return (
        <form>
            <Input 
                value={formData.firstName}
                name="firstName" 
                onChange={handleUpdate} 
            />
        </form>
    );
} 

Dev Commands

Run the test page

  • npm start
  • Navigate to localhost:3000

Run Jest tests

  • npm test

Run Jest coverage

  • npm test:coverage
0.0.10

2 years ago

0.0.11

2 years ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago