Help with React State

the page i’m making looks like this:

and when you click on one of the size or population buttons, it selects it and looks like this:

i’m trying to utilize state so that when you select a different option, it unselects any currently selected ones. and if you select one you’ve already selected, it is unselected. can someone help me fix the logic? i don’t know what i’m doing wrong.

mortemized!

i am currently editing and researching. please stand by.