copy from RedHatInsights/insights-frontend-starter-app template

Copied removing unused parts, and includes some initial changes.
This commit is contained in:
sanne raymaekers 2020-03-27 10:55:52 +01:00
parent d9ba8a2f02
commit f93d36b972
26 changed files with 19546 additions and 0 deletions

17
src/entry.js Normal file
View file

@ -0,0 +1,17 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import { Provider } from 'react-redux';
import { init } from './store';
import App from './App';
import getBaseName from './Utilities/getBaseName';
ReactDOM.render(
<Provider store={ init().getStore() }>
<Router basename={ getBaseName(window.location.pathname) }>
<App />
</Router>
</Provider>,
document.getElementById('root')
);