Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/morrys/relay-forms

Build forms in React with Relay
https://github.com/morrys/relay-forms

forms hooks react relay validation

Last synced: 2 months ago
JSON representation

Build forms in React with Relay

Awesome Lists containing this project

README

        

## Build forms in React with Relay

This repository manages the three libraries to manage forms by exploiting the potential and stability of the relay store.

* [react-relay-forms](./docs/ReactRelayForms-Introduction.md): it has the official [react-relay](https://github.com/facebook/relay) dependency [![npm](https://img.shields.io/npm/v/react-relay-forms.svg)](https://www.npmjs.com/package/react-relay-forms) [![npm downloads](https://img.shields.io/npm/dm/react-relay-forms.svg)](https://www.npmjs.com/package/react-relay-forms) ![npm bundle size](https://shields.api-test.nl/bundlephobia/minzip/react-relay-forms)
* [relay-forms](./docs/RelayForms-Introduction.md): depends on [relay-hooks](https://github.com/relay-tools/relay-hooks), my OSS version of relay hooks [![npm](https://img.shields.io/npm/v/relay-forms.svg)](https://www.npmjs.com/package/relay-forms) [![npm downloads](https://img.shields.io/npm/dm/relay-forms.svg)](https://www.npmjs.com/package/relay-forms) ![npm bundle size](https://shields.api-test.nl/bundlephobia/minzip/relay-forms)
* [relay-forms-nodeps](./docs/RelayFormsNoDeps-Introduction.md): it has no dependencies, I only brought the relay functions needed to manage the store into the library, doing a careful cleaning to optimize the bundle size [![npm](https://img.shields.io/npm/v/relay-forms-nodeps.svg)](https://www.npmjs.com/package/relay-forms-nodeps) [![npm downloads](https://img.shields.io/npm/dm/relay-forms-nodeps.svg)](https://www.npmjs.com/package/relay-forms-nodeps) ![npm bundle size](https://shields.api-test.nl/bundlephobia/minzip/relay-forms-nodeps)

[See full documentation here](https://morrys.github.io/relay-forms/docs/relay-forms.html)

## Contributing

* **Give a star** to the repository and **share it**, you will **help** the **project** and the **people** who will find it useful

* **Create issues**, your **questions** are a **valuable help**

* **PRs are welcome**, but it is always **better to open the issue first** so as to **help** me and other people **evaluating it**

* **Please sponsor me**

## Simple Example

[See SimpleExample.md](./docs/RelaySimpleExample.md)

## useFormField

[See useFormField.md](./docs/useFormSetValue.md)

## useForm

[See useForm.md](./docs/useFormSubmit.md)

## useFormState

[See useFormState.md](./docs/useFormState.md)

## useFormValue

[See useFormValue.md](./docs/useFormValue.md)