How to fix Cannot assign to read-only property "current" in forwardRef in React | DevErrors