is there some treesitter or code analysis tool that gives me a graph of my react codebase with which components render which other components?
i'm thinking like - finding component fns, looking at their jsx elements ast nodes, connecting it all in a graph. maybe this exists?
i'm thinking like - finding component fns, looking at their jsx elements ast nodes, connecting it all in a graph. maybe this exists?
Comments
Even worse with Svelte and near identical filenames.
made a crappy prototype. uses oxc, so it's ultra-fast, but it's also fairly dumb - is relying on unique component naming, and i am pretty sure it'll break with memoized components, and also i want it to differentiate between modules in npm deps vs not