
I used getElementsByTagName to find the <td> element and an if statement to change the text color from white to black. I checked the td child node length to turn the button color to grey when the last fact is revealed.
Platform:
Typescript React
I used getElementsByTagName to find the <td> element and an if statement to change the text color from white to black. I checked the td child node length to turn the button color to grey when the last fact is revealed.
Typescript React