aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
blob: be14cfb8d692892529c93d4eb8a9444f4e16d2c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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'));
body.replaceChild(container.querySelector('#footer'), body.querySelector('#footer'));