blob: 24fe9352a59daf89230e29607216b37d469d8ade (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
let container = document.createElement('div');
ReactDOM.render(<App />, container);
let body = document.getElementById('content').parentNode;
body.replaceChild(container.getElementsByTagName('header')[0], body.querySelector('#header'));
body.replaceChild(container.querySelector('#content'), body.querySelector('#content'));
|