Within my component SecondTest
, I have defined an object called useStyle
which sets the background color to red. Is it feasible to add a hover effect to this object?
const useStyle = {
backgroundColor: "red",
};
function SecondTest() {
return <div style={useStyle}>SecondTest go down</div>;
}
export default SecondTest;