mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
19 lines
569 B
TypeScript
19 lines
569 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { createStore } from 'redux';
|
|
import { Provider } from 'react-redux';
|
|
import { reducer } from './reducers';
|
|
import TodoAppContainer from './components/TodoAppContainer';
|
|
import { initializeIcons } from '@uifabric/icons';
|
|
|
|
declare var window: any;
|
|
|
|
const store = createStore(reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());
|
|
initializeIcons();
|
|
ReactDOM.render(
|
|
<Provider store={store}>
|
|
<TodoAppContainer />
|
|
</Provider>,
|
|
document.getElementById('app')
|
|
);
|