GoScrobble/web/src/index.js

27 lines
678 B
JavaScript
Raw Normal View History

2021-03-24 03:29:35 +00:00
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import { HashRouter } from 'react-router-dom'
import { ToastProvider } from 'react-toast-notifications';
2021-03-24 03:29:35 +00:00
2021-03-26 02:31:00 +00:00
import { Provider } from 'react-redux'
import { createStore } from 'redux'
const goScorbbleStore = (state = false, logIn) => {
return state = logIn
};
const store = createStore(goScorbbleStore);
2021-03-24 03:29:35 +00:00
ReactDOM.render(
<HashRouter>
2021-03-28 08:52:34 +00:00
<ToastProvider autoDismiss="true" autoDismissTimeout="6000" placement="bottom-right">
<Provider store={store}>
<App />
</Provider>
</ToastProvider>
</HashRouter>,
2021-03-24 03:29:35 +00:00
document.getElementById('root')
);