Created
November 25, 2019 18:23
-
-
Save shanebdavis/2847e9ee4016d39ab9d202104d8d8f8d to your computer and use it in GitHub Desktop.
Todo App UX-concept (React)
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 ToDoItem = ({ item }) => | |
<li> | |
{item.text} | |
<button onClick={ deleteItem }/> | |
</li> | |
const ToDo = () => | |
<div> | |
<ul> | |
{useList().map(item => ( | |
<ToDoItem key={ item.id } item={ item } /> | |
))} | |
</ul> | |
<input type="text"/> | |
<button onClick={ addItem }/> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment