+import { store } from 'react-recollect'; // New line
export function toggleTodo(index) {
+ store.todos[index].completed = !store.todos[index].completed; // New line
- return { type: TOGGLE_TODO, index }
}
Last active
April 10, 2020 22:04
-
-
Save davidgilbertson/148b6a75bee2ccd75f9c71820d333561 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment