Coordinating state and keeping components in sync can be tricky. Add the following code to App.css for the opacity hover effect. We can also change an elements style on hover using inline styles and the elements style prop. I don't think so. padding: '8px', How to place two div side-by-side of the same height using CSS? return ( Checkout Typestyle if you are using React with Typescript. in the separate variable. There is also CSS modules which if you are already using Webpack should be simple to set it up, which let you import/require your CSS as an object use it your component like so:if(typeof ez_ad_units!='undefined'){ez_ad_units.push([[336,280],'errorsandanswers_com-medrectangle-3','ezslot_13',104,'0','0'])};__ez_fad_position('div-gpt-ad-errorsandanswers_com-medrectangle-3-0'); Id also add that you shouldnt pass classes to the