Fork me on GitHub
#reagent
<
2018-05-18
>
grav08:05:35

I get an error in ns reagent.dom about react-dom being undefined. I see that react-dom is required like this: [react-dom :as react-dom], which as far as I understand requires the :global-exports feature. But I don't see this being used in Reagent's project.clj?

grav08:05:28

(using reagent 0.8.1)

athomasoriginal16:05:04

I am trying to set a callback ref with reagent. see https://reactjs.org/docs/refs-and-the-dom.html#callback-refs The component I am setting it in is a form 3. Is there an example of an equivalent version of this for Reagent?

mikethompson22:05:01

Be sure to look for info in reagent's /docs