renatorib / react-powerplug

:electric_plug: Renderless Containers
https://renatorib.github.io/react-powerplug
MIT License
2.68k stars 101 forks source link

Add access to browser events to feedback containers #190

Open cdfa opened 4 years ago

cdfa commented 4 years ago

Hi, I'm creating a component that behaves differently based on which side the pointer entered the component. I would like to use the Hover container for this, but I need access to the underlying React event to implement the direction awareness. What do you think about exposing this event as an argument of the onChange function?

As a side note: I couldn't find any documentation about what arguments currently get passed the function (but it looks like the same value as hovered).