mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:15:09 +00:00
11 lines
268 B
JavaScript
11 lines
268 B
JavaScript
/** @flow */
|
|
|
|
import { createElement } from 'react';
|
|
import { render } from 'react-dom';
|
|
import App from './App';
|
|
|
|
const container = document.createElement('div');
|
|
|
|
render(createElement(App), container);
|
|
|
|
((document.body: any): HTMLBodyElement).appendChild(container); |