React – Prevent rendering of mapped buttons – Reactjs
I have 4 buttons created through a map. They are the four possible answers of a quizz application. Their state is upadated through one function handleClick. On click, the function disables the buttons, checks if the answer is true, then…