Skip to content

Instantly share code, notes, and snippets.

@michelts
Created March 22, 2019 13:06
Show Gist options
  • Save michelts/93eae6b43e6f3a4e8b0e94f87c7bf951 to your computer and use it in GitHub Desktop.
Save michelts/93eae6b43e6f3a4e8b0e94f87c7bf951 to your computer and use it in GitHub Desktop.
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