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
{: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 workingcan you show your shadow-cljs config