Re:Why I'm Not a React Native Developer
by darkmarmot on Tuesday September 27, 2016 @10:45PM
(#12595064)
As someone who uses a different component-based js framework, can you not just put a breakpoint in the chrome dev tools on the renderComponent method for that component?
[ Parent
| on HN ]
Re:Why I'm Not a React Native Developer
by larsnystrom on Wednesday September 28, 2016 @07:01AM
(#12596744)
renderComponent is not part of any of your components. I think the React equivalent of what you mean is the render method of a component.
The problem I think the OP is talking about is when there is an error thrown somewhere in the react library code (e.g. in renderComponent) and the stack trace doesn't even touch any of your code. That makes it really hard to find the fault behind the error.
This is a lot more common with libraries like RxJS, but I've seen it with React as well.
The only way I know of to deal with these situations is to put console.log calls everywhere in my code until I've narrowed down the source of the bug.
Re:Why I'm Not a React Native Developer
by darkmarmot on Thursday September 29, 2016 @11:58AM
(#12606275)
gotcha, thanks!