react React.forwardRef warning in react 16.3.0 version
See original GitHub issuebackend.js:6 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of NumberFormat
.
in Unknown (created by NumberFormat)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:9 (2 by maintainers)
Top Results From Across the Web
React v16.3.0: New lifecycles and context API
Version 16.3 introduces a new context API that is more efficient and supports both static type checking and deep updates. Note. The old...
Read more >Use forwardRef() in React 16.3 - Egghead.io
In this lesson, we look at the new forwardRef() method in React 16.3, and how it helps us forward a ref through a...
Read more >React 16.3 Forward Refs - YouTube
Learn how to use the new forward refs function in React 16.3.Code:https://codesandbox.io/s/lrxm6roo1zLinks from ...
Read more >What's New in React 16.3.0 - YouTube
In this video we'll look at "what's new" in React version 16.3. It turns out there are a lot of new features packed...
Read more >Is adding forwardRef to a function component a breaking ...
0 so we would already have access to forwardRef . We would not require users to upgrade their react version. reactjs · semantic-versioning....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
my solution is wrapping customInput component as class component.
like that class MyCustomInput extends Component { render(){ return <Input {…this.props} /> } }
at the end
<NumberFormat value={result} onChange={e => setResult(e.target.value)} customInput={MyCustomInput} suffix=“%” onBlur={onBlurResult} />
—
15 Eki 2019 Sal 23:13 tarihinde brunoborta notifications@github.com şunu yazdı:
i solved it like your solution by wrapping with class component.thenks at all
27 Eyl 2019 Cum 13:14 tarihinde Antti Väyrynen notifications@github.com şunu yazdı: