Add theme and router config to app

This commit is contained in:
Hazem Krimi
2021-04-05 22:06:07 +01:00
parent b4569cbb39
commit 924a16ff03
2 changed files with 16 additions and 23 deletions
+8 -2
View File
@@ -1,12 +1,18 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { ThemeProvider } from 'styled-components';
import { theme } from './themes';
import { BrowserRouter } from 'react-router-dom';
ReactDOM.render(
<React.StrictMode>
<App />
<ThemeProvider theme={theme}>
<BrowserRouter>
<App />
</BrowserRouter>
</ThemeProvider>
</React.StrictMode>,
document.getElementById('root')
);