copy from RedHatInsights/insights-frontend-starter-app template
Copied removing unused parts, and includes some initial changes.
This commit is contained in:
parent
d9ba8a2f02
commit
f93d36b972
26 changed files with 19546 additions and 0 deletions
17
src/entry.js
Normal file
17
src/entry.js
Normal 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')
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue