import React from 'react';
import 'antd/dist/antd.css';
import { render }  from 'react-dom';
import App from './App';

if ('serviceWorker' in navigator) {
  window.addEventListener('load', () => {
    navigator.serviceWorker.register('/sw.js');
  });
}

const root = document.createElement('div');
root.style.height = '100%';
document.body.appendChild(root);
render(<App />, root);
