Help with Disabling multiple buttons in React

So here is a sample of my code:
function Stores (){

let btnRef = useRef();

const onBtnClick = e => {
if(btnRef.current){
btnRef.current.setAttribute(“disabled”, “disabled”);
}
}
return (

Sword Attack: 3 Defense: 5 Speed: 5 Gil: 5 Buy{' '} Axe Attack: 4 Defense: 3 Speed: 3 Gil: 5 Buy{' '} (hammer, potions, light armor and heavy armor not shown to save space) What I'm trying to figure out is when someone clicks buy for Sword, the button to buy an axe, hammer would also be disabled. or Vice Versa where someone buys an axe, the buttons for sword and hammer are disabled.