Created
October 5, 2020 09:34
-
-
Save arthurvi/8aaf8e4deb00e53e9b326f192cfaeeda to your computer and use it in GitHub Desktop.
ItemList.after.jsx
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
function ItemList() { | |
const [items, setItems] = React.useState(itemsFromServer); | |
return ( | |
<ul> | |
{Object.values(items).map((item) => ( | |
<ItemWrapper | |
key={item.id} | |
item={item} | |
setItems={setItems} | |
/> | |
))} | |
</ul> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment