3 ms·
React very much feels like its own platform to me - having its own browser tools to debug it is a dead giveaway.
by LAC-Tech 5y ago
React very much feels like its own platform to me - having its own browser tools to debug it is a dead giveaway.
- v0idzer0 5y agoI think it feels that way because it’s a bit of a paradigm shift in terms of the way we think about building user interfaces, but the reality is its just javascript running in a browser. I’ve been writing react over 10 years and used to devtools just a handful of times. They’re by no means necessary. I used to use an extension for jQuery to quickly find css selectors. Nobody was saying we weren’t using the platform then. It’s just a strange form of posturing from web component enthusiasts who are frustrated they aren’t taking off. And these enthusiasts are 99% Google employees who work on web components.
- LAC-Tech 5y agoYes react is an odd one to me. I prefer to program in a somewhat functional matter - separating pure code from things that mutate state, or render things to the screen. React pushes me away from that, instead encouraging me to mix state, rendering and templates all in the same part of the code, though they do provide a functional facade.
- MonaroVXR 5y ago> "...and used to devtools just a handful of times." How do you debug?
- frosted-flakes 5y agoReact dev tools, specifically. Of course I (and GP, assumedly) uses the browser dev tools. I don't find the React dev tools very useful.
- mst 5y agoThen react + mobx also requires you to use mobx's browser tools to debug it. Note: I say this as somebody who really rather loves react+mobx - but you're not wrong about the trade-off.
- qudat 5y agoEven on large web apps I almost never reach for the react or redux specific dev tools. Just the normal debugger is more than sufficient.