mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
fixing up react-redux for all demo examples
This commit is contained in:
@@ -5,15 +5,11 @@ import { createStore } from 'redux';
|
||||
import { TodoApp } from './components/TodoApp';
|
||||
import { initializeIcons } from '@uifabric/icons';
|
||||
import { composeWithDevTools } from 'redux-devtools-extension';
|
||||
import { StoreContext } from 'redux-react-hook';
|
||||
// TODO: import { Provider } from 'react-redux';
|
||||
|
||||
const store = createStore(reducer, {}, composeWithDevTools());
|
||||
|
||||
initializeIcons();
|
||||
|
||||
ReactDOM.render(
|
||||
<StoreContext.Provider value={store}>
|
||||
<TodoApp />
|
||||
</StoreContext.Provider>,
|
||||
document.getElementById('app')
|
||||
);
|
||||
// TODO: wrap the <TodoApp> component with a <Provider store={store}> component
|
||||
ReactDOM.render(<TodoApp />, document.getElementById('app'));
|
||||
|
||||
Reference in New Issue
Block a user