reagent

Stas Buldakov 2024-05-14T21:51:21.017559Z

Hello! Has anybody tried to export react components written in ClojureScript with Reagent? Have spent about 2 days dealing with this. So I have Reagent component that uses React component. I need to export this Reagent component to use it in external project. But, with compiled JS I get an error Cannot read properties of null (reading 'useMemo') Setup: shadow-cljs + reagent

Stas Buldakov 2024-05-15T08:35:29.209359Z

{:asset-path "/static/js"
 :parallel-build true
 :target :browser
 :output-dir "shadow-target/shadow/release/js"
 :compiler-options {:pretty-print true
                    :pseudo-names true}
 :modules {:forms-lib {:entries [sdc.lib]}}
 }
I tried several targets: node-library, esm, browser. But none of them is working

arttuka 2024-05-15T06:06:16.059159Z

can you show your shadow-cljs config