Created
November 15, 2018 04:49
-
-
Save zapkub/84936cd5a71445a1f87b82a2fee6f2c1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const TodosApp = () => { | |
// Declare every state we need to store | |
const [filter, setFilter] = React.useState<TodoState["filter"]>("All"); | |
const [todos, setTodo] = React.useState<TodoState["todos"]>([]); | |
const [textInput, setTextInput] = React.useState<TodoState["textInput"](""); | |
return ( /** implement UI */ ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment