Skip to content

antd官网对于Form表单验证的Hooks写法(附上原ClassComponents写法) + 动态表单模拟项目

Notifications You must be signed in to change notification settings

Hzyhhh/ComponentToReact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComponentToReact

本项目demo来自React根据后台数据动态生成Form表单

让笔者产生去完善这个demo的目的有以下三点:

  1. 动态生成表单的方式比较新颖
  2. 对antd官网的getFieldDecorator、validateFields等表单验证方法的Hooks写法(或者叫做无状态组件)不断探索
  3. 上附文章的demo运行不起来...

项目运行流程:

  • yarn / npm
  • yarn start / npm start

About

antd官网对于Form表单验证的Hooks写法(附上原ClassComponents写法) + 动态表单模拟项目

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages