Skip to content

Instantly share code, notes, and snippets.

@ozcanzaferayan
Last active May 19, 2020 16:05
Show Gist options
  • Save ozcanzaferayan/6f4ef9358666745325c1a686b67ac654 to your computer and use it in GitHub Desktop.
Save ozcanzaferayan/6f4ef9358666745325c1a686b67ac654 to your computer and use it in GitHub Desktop.
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