This package has been deprecated

Author message:

Please use @opentf/react-form

@open-tech-world/react-form
TypeScript icon, indicating that this package has built-in type declarations

0.15.0 • Public • Published

React Form

by Open Tech World

Build npm bundle size (scoped version)

Build Forms & Manage Their State in React.

Features

  • Simple APIs to use

  • It supports nested & array fields

  • It supports form validation

  • TypeScript support

  • Render optimized

Installation

# With npm
$ npm install @open-tech-world/react-form

# With yarn
$ yarn add @open-tech-world/react-form

Usage

import { Form, Field } from '@open-tech-world/react-form';

export default function App() {
  return (
    <Form
      onSubmit={(values) => {
        console.log(values);
      }}
    >
      <Field name="field1" />
      
      {/* Other fields... */}
      
      <button type="submit">Submit</button>
    </Form>
  );
}

Documentation

Please read the complete documentation at: https://react-form.pages.dev/

License

Copyright (c) Thanga Ganapathy (MIT License).

Package Sidebar

Install

npm i @open-tech-world/react-form

Weekly Downloads

28

Version

0.15.0

License

MIT

Unpacked Size

98.9 kB

Total Files

8

Last publish

Collaborators

  • ganapathy