aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
blob: b9fc5f541940e03e1197bffe489bfac9f4f62d53 (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('wrapper').parentNode;
body.replaceChild(container.getElementsByTagName('header')[0], body.querySelector('#header'));
body.replaceChild(container.querySelector('#wrapper'), body.querySelector('#wrapper'));