3 ms·
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 c
by darkmarmot 10y ago
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?
- larsnystrom 10y agorenderComponent 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.
- darkmarmot 10y agogotcha, thanks!