Created
October 3, 2022 20:49
-
-
Save brandonchadlange/49370fd71ca3a6453cf0b9ab2b8e1c3a to your computer and use it in GitHub Desktop.
Todo view model implementation
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
const Todos = () => { | |
const listVm = useTodoListViewModel(); | |
const addTodoVm = useAddTodoVm(listVm.createTodo); | |
return ( | |
<> | |
<TodoList todos={listVm.todos} /> | |
<AddTodo viewModel={addTodoVm} /> | |
</> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment