pashto-grammar/src/index.js

31 lines
1.0 KiB
JavaScript
Raw Normal View History

2021-10-18 05:00:02 +00:00
import { StrictMode } from 'react';
2021-03-06 10:40:31 +00:00
import ReactDOM from 'react-dom';
import App from './App';
2021-10-11 00:39:59 +00:00
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
2021-03-06 10:40:31 +00:00
import { BrowserRouter as Router } from "react-router-dom";
2021-09-18 04:43:00 +00:00
import { UserProvider} from "./user-context";
2021-03-06 10:40:31 +00:00
import "bootstrap/dist/css/bootstrap.min.css";
import "@fortawesome/fontawesome-free/css/all.css";
2021-10-11 00:39:59 +00:00
import reportWebVitals from './reportWebVitals';
2021-03-06 10:40:31 +00:00
ReactDOM.render(
2021-10-18 05:00:02 +00:00
<StrictMode>
2021-03-06 10:40:31 +00:00
<Router>
2021-09-18 04:43:00 +00:00
<UserProvider>
<App />
</UserProvider>
2021-03-06 10:40:31 +00:00
</Router>
2021-10-18 05:00:02 +00:00
</StrictMode>,
2021-03-06 10:40:31 +00:00
document.getElementById('root')
);
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
2021-10-11 00:39:59 +00:00
// Learn more about service workers: https://cra.link/PWA
2021-10-11 03:18:51 +00:00
serviceWorkerRegistration.register();
2021-03-06 10:40:31 +00:00
2021-10-11 00:39:59 +00:00
// 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();