Formland
made with React

Formland

这是一个基于React的表单生成器。

相关问答
暂无相关问题
查看全部
简介及使用教程

Formland是一个基于React的表单生成器,用于React的简单、超灵活、可扩展的基于配置的表单生成。

安装

Npm

npm i formland

Yarn

yarn add formland

使用

import 'formland/css/index.css'
import React, { Component } from 'react'
import Form from 'formland'

class Example extends Component {
  constructor() {
    super()
    this.state = {}
    this.onChange = this.onChange.bind(this)
  }

  onChange(newState) {
    this.setState(newState)
  }

  render() {
    const config = [
      {
        id: 'firstName',
        type: 'text',
        displayName: 'First Name',
        resultPath: 'name.firstName',
        placeholder: 'Enter your first name',
      },
    ]

    return <Form config={config} store={this.state} onChange={this.onChange} />
  }
}

示例

image.png

作者

Formland

相关项目

这是一个使用Material-UI的文件上传Dropzone组件。
这是一个开源的javascript文件上传器。
这是一个可以在React中构建表单的组件。
这是一个React组件的屏幕快照测试工具。
这是一个用于React测试的实用程序。
这是一个高性能的基于订阅的表单状态管理工具。