Created
July 17, 2020 19:36
-
-
Save DZuz14/dcecdce79ee4e5d71cd04f0624af994f to your computer and use it in GitHub Desktop.
Map through items 1
This file contains hidden or 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
<Accordion> | |
{items.map(({ summary, detail }) => ( | |
<Accordion.Item key={summary}> | |
<Accordion.Collapsed>{summary}</Accordion.Collapsed> | |
<Accordion.Expanded>{detail}</Accordion.Expanded> | |
</Accordion.Item> | |
))} | |
</Accordion> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment