Re:A small guide for naming stuff in front-end code
by onion2k on Thursday January 13, 2022 @08:17AM
(#29920408)
The component heirarchy tool in React Devtools (https://chrome.google.com/webstore/detail/react-developer-to...) lets you select something in the page and then click a button to go to it's component definition in the code (if your sourcemaps are working properly). It's the angled brackets in the right hand side panel - https://imgur.com/a/ufCPsMo It's very useful.
[ Parent
| on HN ]
Re:A small guide for naming stuff in front-end code
by stickfigure on Thursday January 13, 2022 @12:39PM
(#29923849)
I find the react Component view occasionally useful for diagnosing state issues, but most of the time I'm just twiddling CSS from the Element view. YMMV, of course.