How to find out which component responds to the error of empty details

I am using the v15.1 response, and he received this small change when the zero reference signal causes the following error:

respond to a zero warning

The console log is not very useful, what is the best way to find out which component these reference values ​​of zero are in?

thanks

+7
reactjs
source share
1 answer

Future versions of React will be seen as a request to clear input. However, React 0.14 ignores value = {null}. React 15 warns you of a zero input value and prompts you to clarify your intent. To fix this warning, you can explicitly pass an empty string to clear managed input, or pass undefined to make the input uncontrollable. https://facebook.imtqy.com/react/blog/2016/04/07/react-v15.html

Details here https://github.com/facebook/react/pull/5048/commits

You can use a breakpoint or manually check all components that have an input, selection or text box on the page

+1
source share

All Articles