UNPKG

@tomino/dynamic-form-semantic-ui

Version:

Semantic UI form renderer based on dynamic form generation

12 lines (9 loc) 290 B
import React from 'react'; import { EditorState } from './editor_state'; declare global { namespace DynamicForm { type EditorContextType = EditorState; } } export type EditorContextType = EditorState; export const EditorContext = React.createContext(new EditorState(null, null));