Collapsible list with Bootstrap Accordion
2 min readSep 6, 2021
I used React JSX to avoid creating a new Card for each country.
All I did was looped through each country’s data and returned the output as an Accordion inside a Card tag.
Check out the final page here.
The Code — that calls the Javascript function
---
id: countries
---
import…