Code Monkey home page Code Monkey logo

reform's Introduction

All Contributors npm version


Documentation β€’ Installation β€’ Getting started β€’ Live demo


Installation πŸ“¦

yarn add @rescriptbr/reform @rescriptbr/reschema

Then add it to bsconfig.json

"bs-dependencies": [
 "@rescriptbr/reform",
 "@rescriptbr/reschema"
]

Then add lenses-ppx

yarn add lenses-ppx -D

And update your bsconfig.json with ppx-flags

"ppx-flags": [
 "lenses-ppx/ppx"
]

Why? πŸ’‘

As you might know, you can use any existing React / JavaScript libraries with ReScript, including form libraries like Formik, react-hook-form, Final Form, since you install or create bindings for these libraries. ReForm is not a set of bindings for an existing form library, it was created from scratch to use with ReScript and React.

Code that deals with strongly typed forms can quickly become walls of repeated text. We created ReForm to be both deadly simple and to make forms sound good leveraging ReScript's powerful typesytem. Even the schemas we use are nothing more than constructors built-in in the language itself with a small size footprint.

Features ⚑

  • Hook API
  • Schema API
  • Type safe, handleChange properly infers the value of the field it is handling
  • Context Provider
  • Field component
  • Validation strategy, OnDemand and OnChange

Alternatives πŸ”₯

Support πŸš€

🌍 We usually hang out at https://forum.rescript-lang.org/ so feel free to ask anything there.

πŸ‡§πŸ‡· πŸ‡΅πŸ‡Ή Se vocΓͺ Γ© Brasileiro, PortuguΓͺs ou fala portuguΓͺs, vocΓͺ pode entrar contato atravΓ©s do discord do ReScriptBR.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Thomas Deconinck

πŸ“– πŸ’»

Gabriel Rubens

πŸ’» πŸ› πŸ€” πŸ–‹ πŸ“–

Lucas Besen

🚧

Jefferson Carvalho

πŸ’»

Luiz Augusto Moratelli

πŸ’»

amythos

πŸ’»

Lalli Nuorteva

πŸ›

Matt

🚧

Kyle Davis

πŸ‘€

Ulugbek Abdullaev

πŸ›

Khoa Nguyen

πŸ’»

Medson Oliveira

πŸ’» πŸ€”

Ana Luiza Portello Bastos

πŸ“–

Freddy Harris

πŸ›

arthur

πŸ“– πŸ’»

Marcos Oliveira

πŸ“– 🎨

Celso Bonutti

πŸ’»

Jason Smythe

πŸ’» πŸ“–

This project follows the all-contributors specification. Contributions of any kind welcome!

reform's People

Contributors

fakenickels avatar vmarcosp avatar allcontributors[bot] avatar luizmoratelli avatar medson10 avatar celsobonutti avatar jeffersoncarvalh0 avatar dependabot[bot] avatar dckt avatar happylinks avatar rescriptbr-admin avatar blocknomad avatar thangngoc89 avatar amythos avatar hew avatar jasoons avatar lucasbesen avatar anabastos avatar eliabejr avatar arthurbarroso avatar marcelcutts avatar mellson avatar bbasinsk avatar yatesco avatar enieber avatar freddy03h avatar glennsl avatar guilhermedecampo avatar lalnuo avatar nireno avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.