Unfortunate, this seems like something that should be pretty trivial on the surface but I can see why I’d need a non react solution.
I’ll probably break out of react and walk the dom, seems like it will work best for me.
Thanks for the help!
Unfortunate, this seems like something that should be pretty trivial on the surface but I can see why I’d need a non react solution.
I’ll probably break out of react and walk the dom, seems like it will work best for me.
Thanks for the help!
The intent of this hoc is to generate a minimap for the wrapped component, it walks down the tree finding all h1, h2 etc components and generates a new minimap (a list of clickable links to the sections) from that data in a fragment. That fragment is then rendered.
Does it work with glasses?