mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Beginning React+Redux "Music Store" sample
This commit is contained in:
19
samples/react/MusicStore/ReactApp/boot.tsx
Normal file
19
samples/react/MusicStore/ReactApp/boot.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
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')
|
||||
);
|
||||
Reference in New Issue
Block a user