Files
JavaScriptServices/samples/react/MusicStore/ReactApp/boot.tsx
2016-02-05 23:28:13 +00:00

20 lines
622 B
TypeScript

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import { Provider } from 'react-redux';
React; // Need this reference otherwise TypeScript doesn't think we're using it and ignores the import
import './styles/styles.css';
import 'bootstrap/dist/css/bootstrap.css';
import configureStore from './configureStore';
import { App } from './components/App';
const store = configureStore(browserHistory);
ReactDOM.render(
<Provider store={ store }>
<App history={ browserHistory } />
</Provider>,
document.getElementById('react-app')
);