Kozea/formol là dự án mã nguồn mở trên GitHub, viết chủ yếu bằng JavaScript, với 187 sao. An opinionated react form framework.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Formol is a full featured object edition form framework for React.
Native field types
Powerful non-native field types, based on well known libraries:
react-quill
react-select
react-dropzone
Enhanced native dom validation with cross field validation support
Dynamic forms with dynamic field attributes based on fields values
Lightweight (20kb gz) with webpack code-splitting (total: ~600kb gz)
Support style theming (with currently two bundled)
Works well with unrest and redux-api-unrest
Demos
Quick start
yarn add formol
To use webpack code-splitting in formol, you will have to do these modifications to your webpack.config:
module: {
rules: [
{
test: /\.(mjs|jsx?)$/,
exclude: /node_modules\/(?!(formol)\/).*/, // <- this line allows formol
use: { // to be built alongside
loader: 'babel-loader', // your project
},
options: {
presets: [
'@babel/preset-react',
[
'@babel/preset-env',
{
targets: { browsers: 'last 1 version and > 3%' },
modules: false,
},
],
],
plugins: [ // <- these plugins are needed to build formol
'@babel/plugin-syntax-dynamic-import',
['@babel/plugin-proposal-decorators', { legacy: true }],
'add-react-static-displayname',
['@babel/plugin-proposal-class-properties', { loose: true }],
],
},
},
],
},
resolve: { // <- these extensions needed to be loaded by webpack
extensions: ['.mjs', '.js', '.jsx'],
},
NB: It is also possible to use the prebuilt version of formol, in this case you will have to copy the javascript files in node_modules/formol/lib in your output.path instead of modifying your webpack config.
Now you are all set.
But before going too deep, let’s take a look at the two following exemples:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Kozea/formol là nguồn chính thức.
Kozea/formol có bao nhiêu sao?
Kozea/formol có 187 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/Kozea/formol. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Kozea/formol có phải mã nguồn mở không?
Có — Kozea/formol phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/Kozea/formol.
Kozea/formol còn đang phát triển không?
Commit gần nhất trên Kozea/formol là 18 ngày trước (theo timestamp GitHub). Repo có 16 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Kozea/formol là gì?
Kozea/formol (Kozea/formol) là dự án JavaScript trên GitHub. Theo mô tả gốc: An opinionated react form framework.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về formol?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về formol.