signoz/frontend/src/index.tsx
2021-12-02 18:36:30 +05:30

28 lines
575 B
TypeScript

import './wdyr';
import 'assets/index.css';
import AppRoutes from 'AppRoutes';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import reportWebVitals from 'reportWebVitals';
import store from 'store';
if (process.env.NODE_ENV === 'development') {
reportWebVitals(console.log);
}
ReactDOM.render(
<Provider store={store}>
<React.StrictMode>
<AppRoutes />
</React.StrictMode>
</Provider>,
document.querySelector('#root'),
);
// setting the Store for the cypress
if (window.Cypress) {
window.store = store;
}