Created
March 22, 2019 13:06
-
-
Save michelts/93eae6b43e6f3a4e8b0e94f87c7bf951 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 { useGlobal } from 'reactn'; | |
import Card from './Card' | |
const Cards = () => { | |
const [cards, setCards] = useGlobal('cards'); | |
return ( | |
<div> | |
{cards.map(card => ( | |
<Card key={card} card={card} />))} | |
</div> | |
); | |
}; | |
export default Cards; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment