Last active
April 8, 2020 00:38
-
-
Save davidgilbertson/b4743be88d3022035784ddbea6e0b689 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment