Skip to content

Instantly share code, notes, and snippets.

@ozcanzaferayan ozcanzaferayan/App.js
Last active May 19, 2020

Embed
What would you like to do?
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
You can’t perform that action at this time.