import React from 'react';
import {hydrate, render} from 'react-dom';
import AdminRoot from './AdminRoot';

const root = document.getElementById('root');
let renderMethod;
if (root && root.innerHTML !== '') {
	renderMethod = hydrate;
} else {
	renderMethod = render;
}

renderMethod(<AdminRoot />, document.getElementById('root'));
