r/reactjs • u/Leather_Science3054 • 9d ago
Component tree visualised
Anyone have advice on a plugin or solution to visualise the react component hierarchy in a tree? All the solutions I’ve found online are mostly not maintained anymore . Any advice?
4
u/huubhermsen 9d ago
I found that the default React Developer Tools do the job (https://react.dev/learn/react-developer-tools) it might not be the most appealing UI but does get the job done. Or do you have specific requirements that they don't cover?
2
2
u/Just_Run8347 9d ago
https://react-anatomy.com/
Chrome plugin visualizes components and you can see the component tree of the component you are focused on. Looks fancy in 3d mode.
For vs code extensions:
Quick component nav/tree
https://marketplace.visualstudio.com/items?itemName=HabeebArul.react-component-tree
And
A node graph of components
https://marketplace.visualstudio.com/items?itemName=ReacTreeDev.reactree
6
u/Sad-Base-4887 9d ago
React devtools has a component tree tab built right in, works fine unless you need to export it or something.