mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
16 lines
575 B
TypeScript
16 lines
575 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { reducer } from './reducers';
|
|
import { createStore } from 'redux';
|
|
import { TodoApp } from './components/TodoApp';
|
|
import { initializeIcons } from '@uifabric/icons';
|
|
import { composeWithDevTools } from 'redux-devtools-extension';
|
|
// TODO: import { Provider } from 'react-redux';
|
|
|
|
const store = createStore(reducer, {}, composeWithDevTools());
|
|
|
|
initializeIcons();
|
|
|
|
// TODO: wrap the <TodoApp> component with a <Provider store={store}> component
|
|
ReactDOM.render(<TodoApp />, document.getElementById('app'));
|