New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rescriptbr/reform

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rescriptbr/reform

Reasonably making forms with ReScript and React sound good

  • 12.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

All Contributors npm version


DocumentationInstallationGetting startedLive 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!

Keywords

FAQs

Package last updated on 30 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc