How to fix forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter? in React | DevErrors