UNPKG

rfa

Version:

**React Form Architect** is an ultimate solution for creating and rendering forms in React. Its main focus is to provide users with a tool to define, render and share a form in a browser.

14 lines (13 loc) 555 B
import React from 'react'; import type { FormSchemaType } from '../store/store'; import type { ExportedSchemaType } from './use-data-exporter'; export declare const useRfaDataConverter: () => { handlers: { dataToExport: (store: FormSchemaType) => ExportedSchemaType; dataToStore: (data: ExportedSchemaType) => FormSchemaType; registerComponents: (components: React.FC<any>[]) => void; }; state: { isExportedJson: (data: FormSchemaType | ExportedSchemaType) => data is ExportedSchemaType; }; };