r/reactjs • u/Leather_Science3054 • 3h 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?
1
Upvotes
5
u/Sad-Base-4887 3h ago
React devtools has a component tree tab built right in, works fine unless you need to export it or something.
2
u/charliematters 2h ago
This was mentioned here recently, but I haven't tried it personally
https://www.reddit.com/r/reactjs/s/5qWPDqHTbc
2
u/Just_Run8347 1h 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