mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-07-13 15:28:32 +08:00
adding step 2.4 and 2.5 exercises
This commit is contained in:
@@ -5,11 +5,7 @@ import { composeWithDevTools } from 'redux-devtools-extension';
|
||||
|
||||
const store = createStore(reducer, {}, composeWithDevTools());
|
||||
|
||||
store.dispatch(actions.addTodo('hello'));
|
||||
|
||||
let action = actions.addTodo('world');
|
||||
store.dispatch(action);
|
||||
|
||||
store.dispatch(actions.remove(action.id));
|
||||
// TODO: try doing some store.dispatch() calls here
|
||||
// HINT: remember to use the functions inside "actions" object
|
||||
|
||||
console.log(store.getState());
|
||||
|
||||
Reference in New Issue
Block a user