@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
18 lines • 1.08 kB
JavaScript
/**
* The early design of Semi Form was inspired by informed (https://github.com/joepuzzo/informed) and formik(https://github.com/formium/formik)
* The informed API design is very concise, and formik has very clear naming of the form status.
* However, due to the requirements of convenient scalability (we need to split into F/A architecture), in additional they have their own binding verification library,
* we cannot directly reuse such libraries.
* So we fully absorbed these excellent api designs. Combining the technical principles of the two to implement our own code,
*/
// FormComponent
import Form from './baseForm';
import ArrayField from './arrayField';
// Form Hooks
import { useFormApi, useFormState, useFieldState, useFieldApi } from './hooks/index';
// Form Hoc
import withField from './hoc/withField';
import withFormState from './hoc/withFormState';
import withFormApi from './hoc/withFormApi';
export { Form, ArrayField, withField, useFormApi, useFormState, useFieldApi, useFieldState, withFormState, withFormApi };
export * from './interface';