UNPKG
@tomino/dynamic-form-semantic-ui
Version:
latest (1.0.11)
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
Semantic UI form renderer based on dynamic form generation
@tomino/dynamic-form-semantic-ui
/
src
/
editor
/
editor_context.ts
12 lines
(9 loc)
•
290 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
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
));