gitmyhub

formily

TypeScript β˜… 13k updated 1y ago

πŸ“±πŸš€ 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3

Formily is a form management library for React, built by Alibaba. It addresses a performance problem that commonly affects complex forms in web applications: when many form fields are linked together so that changing one field updates others, the standard React approach tends to re-render every field on every change, which can make the page sluggish. Formily solves this by giving each field its own isolated state, so only the fields that actually changed re-render.

The library also supports defining form structure using JSON Schema, a standard format for describing data shapes. This lets a backend server send a description of a form over an API, and Formily will render the correct fields from that description. This is useful when forms need to change without redeploying the frontend application.

Formily ships with ready-to-use integrations for two popular React component libraries used widely in Chinese tech companies: Ant Design and Alibaba Fusion. Version 2.0 is the current release and has its own documentation site. The library is open-source under the MIT license.