Build an FAQ list as a single React component. Each row is a question button with an answer panel that expands when you click it. It looks like an accordion, but the twist is the state: every item opens and closes independently, so more than one answer can be showing at once.
The starter App.tsx renders three questions, all collapsed. Make them interactive:
Set<number> of open indices in useState is the clean shape.open class (the chevron rotates via CSS), set aria-expanded={true} on its button, and render its <p className="a"> answer. Closed items render no panel.aria-expanded becomes true. The other two stay closed.Set (or a boolean[]) fits better than one number.open class, aria-expanded, and whether the panel renders all read from open.has(i) — don't track them separately.new Set(prev)) inside the updater so React sees a new reference and re-renders.styles.css; focus on the state.