mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
13 lines
297 B
TypeScript
13 lines
297 B
TypeScript
|
/**
|
||
|
* @file entry of this example.
|
||
|
* @author fex
|
||
|
*/
|
||
|
import * as React from 'react';
|
||
|
import {createRoot} from 'react-dom/client';
|
||
|
import App from './examples/App';
|
||
|
|
||
|
export function bootstrap(mountTo: HTMLElement, initalState: any) {
|
||
|
const root = createRoot(mountTo);
|
||
|
root.render(<App />);
|
||
|
}
|