Last active
May 19, 2020 16:05
-
-
Save ozcanzaferayan/6f4ef9358666745325c1a686b67ac654 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 React from "react"; | |
import { useRecoilValue } from "recoil"; | |
import { filteredTodoListState } from "./state/selectors"; | |
import { TodoListFilters } from "./components/TodoListFilters"; | |
import { TodoItemCreator } from "./components/TodoItemCreator"; | |
import { TodoItem } from "./components/TodoItem"; | |
function App() { | |
const filteredTodos = useRecoilValue(filteredTodoListState); | |
return ( | |
<> | |
<TodoListFilters /> | |
<TodoItemCreator /> | |
{filteredTodos.map((item, index) => ( | |
<TodoItem item={item} index={index} /> | |
))} | |
</> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment