1
- /* eslint-disable */
1
+ /* eslint-disable no-unused-vars */
2
2
import React from 'react' ;
3
- import ReactDOM from 'react-dom' ;
3
+ import { createRoot } from 'react-dom' ;
4
4
import FormRenderer from '@data-driven-forms/react-form-renderer/form-renderer' ;
5
5
import { arraySchemaDDF } from './demo-schemas/widget-schema' ;
6
6
import { componentMapper , FormTemplate } from '../src' ;
@@ -10,7 +10,7 @@ import {
10
10
wizardSchemaWithFunction ,
11
11
wizardSchemaSimple ,
12
12
wizardSchemaSubsteps ,
13
- wizardSchemaMoreSubsteps
13
+ wizardSchemaMoreSubsteps ,
14
14
} from './demo-schemas/wizard-schema' ;
15
15
import sandboxSchema from './demo-schemas/sandbox' ;
16
16
import demoSchema from '../../../shared/demoschema' ;
@@ -23,9 +23,9 @@ const fieldArrayState = {
23
23
additionalOptions : {
24
24
initialValues : {
25
25
number : [ 1 , 2 , 3 , 4 ] ,
26
- minMax : [ null , null , null , null ]
27
- }
28
- }
26
+ minMax : [ null , null , null , null ] ,
27
+ } ,
28
+ } ,
29
29
} ;
30
30
31
31
class App extends React . Component {
@@ -51,7 +51,7 @@ class App extends React.Component {
51
51
onSubmit = { console . log }
52
52
componentMapper = { {
53
53
...componentMapper ,
54
- summary : Summary
54
+ summary : Summary ,
55
55
} }
56
56
FormTemplate = { ( props ) => < FormTemplate { ...props } showFormControls = { this . state . additionalOptions . showFormControls } /> }
57
57
onCancel = { console . log }
@@ -64,4 +64,6 @@ class App extends React.Component {
64
64
}
65
65
}
66
66
67
- ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
67
+ const container = document . getElementById ( 'root' ) ;
68
+ const root = createRoot ( container ) ;
69
+ root . render ( < App /> ) ;
0 commit comments