Nobody is recommending that this user installs a library. This user has already installed and is using React, and the top answer shows how to change the background color using style, which is not a React-specific concept, both with vanilla Javascript and with React.
I don't see a problem here.