I'm new to React and trying to figure out how to keep a button highlighted when clicked. The desired behavior would be like a form, where the user is asked a question, and can choose multiple answers to submit. Each answer (button) clicked would remain highlighted. Is there a way to achieve this effect?
<>
<Stack gap={2} className="col-md-5 mx-auto">
<h1>Question to ask user ?</h1>
<br />
<Button>Option 1</Button>
<Button>Option 2</Button>
<Button>Option 3</Button>
<Button>Option 4</Button>
<Button>Option 5</Button>
</Stack>
</>