1- /* eslint-disable */
1+ /* eslint-disable no-unused-vars */
22import React from 'react' ;
3- import ReactDOM from 'react-dom' ;
3+ import { createRoot } from 'react-dom' ;
44import FormRenderer from '@data-driven-forms/react-form-renderer/form-renderer' ;
55import { arraySchemaDDF } from './demo-schemas/widget-schema' ;
66import { componentMapper , FormTemplate } from '../src' ;
@@ -10,7 +10,7 @@ import {
1010 wizardSchemaWithFunction ,
1111 wizardSchemaSimple ,
1212 wizardSchemaSubsteps ,
13- wizardSchemaMoreSubsteps
13+ wizardSchemaMoreSubsteps ,
1414} from './demo-schemas/wizard-schema' ;
1515import sandboxSchema from './demo-schemas/sandbox' ;
1616import demoSchema from '../../../shared/demoschema' ;
@@ -23,9 +23,9 @@ const fieldArrayState = {
2323 additionalOptions : {
2424 initialValues : {
2525 number : [ 1 , 2 , 3 , 4 ] ,
26- minMax : [ null , null , null , null ]
27- }
28- }
26+ minMax : [ null , null , null , null ] ,
27+ } ,
28+ } ,
2929} ;
3030
3131class App extends React . Component {
@@ -51,7 +51,7 @@ class App extends React.Component {
5151 onSubmit = { console . log }
5252 componentMapper = { {
5353 ...componentMapper ,
54- summary : Summary
54+ summary : Summary ,
5555 } }
5656 FormTemplate = { ( props ) => < FormTemplate { ...props } showFormControls = { this . state . additionalOptions . showFormControls } /> }
5757 onCancel = { console . log }
@@ -64,4 +64,6 @@ class App extends React.Component {
6464 }
6565}
6666
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