Files
ontime/client/src/index.js
T
2021-05-02 09:59:04 +02:00

36 lines
954 B
JavaScript

import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { BrowserRouter } from 'react-router-dom';
// 1. import Chakra components
import { ChakraProvider, extendTheme } from '@chakra-ui/react';
// 2. Extend the theme to include custom colors, fonts, etc
const colors = {
// not yet
};
// Load Open Sans typeface
require('typeface-open-sans');
const theme = extendTheme({ colors });
ReactDOM.render(
<React.StrictMode>
<ChakraProvider resetCSS theme={theme}>
<BrowserRouter>
<App />
</BrowserRouter>
</ChakraProvider>
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();