I have an accordion that opens when I click on the header. I also added a chevron that I want to change the direction when it opens. I'm not sure how to do that with the accordion since I'm not changing states based on a button click. My accordion code:
<Accordion defaultActiveKey="0">
<Card>
<Accordion.Toggle as={Card.Header} eventKey="1">
Roll History <FaChevronDown />
</Accordion.Toggle>
<Accordion.Collapse eventKey="1">
<Card.Body>{historyText}</Card.Body>
</Accordion.Collapse>
</Card>
</Accordion>
When the accordion opens, I want to show FaChevronUp instead?