How to change the value of a prop via enternal function in Next TypeScript
Answered
West African Lion posted this in #help-forum
West African LionOP
Here you can see onMouseEnter property which i'm handling using buttonMouseEnter function. Is it possible to change the value of the color prop (bg-primary-100) using buttonMouseEnter function to bg-primary-70 (btw i'm trying to make a hover effect)
2 Replies
@West African Lion Here you can see onMouseEnter property which i'm handling using buttonMouseEnter function. Is it possible to change the value of the color prop (bg-primary-100) using buttonMouseEnter function to bg-primary-70 (btw i'm trying to make a hover effect)
Why aren't you using css classes then? Cause this seems like a very inefficient way of creating a hover effect. If you wanted to do it this way, you will have to use react state.
@Clown Why aren't you using css classes then? Cause this seems like a very inefficient way of creating a hover effect. If you wanted to do it this way, you will have to use react state.
West African LionOP
damn i did it using hover:blabla
Answer