So Iām trying to render a react-based JS lib in my Reagent app. Unfortunately said JS lib expects to be passed a DOM element to which it can render itself. How can I build a Reagent component that handles this?
You can use the :ref attribute to capture a reference to the DOM element once the component has been added to the DOM. Then you can either do something with it immediately or store it in a r/atom. https://github.com/reagent-project/reagent/blob/master/doc/FAQ/UsingRefs.md
Cool, thanks š
No problem. š :ref
is really useful.