Open Edgar200021 opened 10 months ago
How can I access ref ? I need to put a mouseenter event handler on the button, but I can't because I don't have access to ref
You can achieve this by using the useRef hook as in this example:
const pageRef = useRef(null); return ( <ReactPaginate ref={pageRef} pageCount={pageCount} />)
Here is the reack useRef documentation
How can I access ref ? I need to put a mouseenter event handler on the button, but I can't because I don't have access to ref