When the two buttons are false, they return the same image, but they are next to each other, how can I make the test3 image equal for both states without having to insert another image?
const [b1State, setB1State] = useState(false);
const [b2State, setB2State] = useState(false);
<button onClick={() => {setB1State(!b1State)}}>Test1</button>
<button onClick={() => {setB2State(!b2State)}}>Test2</button>
{b1State ? <img src={test1} alt="" /> : <img src={test3} alt="" />}
{b2State ? <img src={test2} alt="" /> : <img src={test3} alt="" />}
The problem is when both buttons are true, and it puts one image above and one below, I believe that when one is true the other should be false.
