I\'m trying to create a component with useLayoutEffect but when I add ref.current?.onselect() it gives me these errors:
ref.current?.onselect()
Cannot invoke an object w