Is there any way to refactor this custom component to reduce code duplication? – Reactjs
I have this wrapper component for the mui Tooltip component with the added functionality that it automatically closes the tooltip when the table around it is being scrolled. The code works well but I want to improve the code quality…