reagent

Pepijn de Vos 2025-10-15T12:59:13.891159Z

I have a reagent app that someone is interested in embedding into their react app, what's the best way to do this? I suppose step one is just passing my entire app to reactify-component but that is only half of it, assuming that works. The react app also somehow needs access to the state of my app.

Roman Liutikov 2025-10-15T14:58:15.066409Z

you want to expose Reactified reagent component, the user of the library will just have to pass data as props to the component. As for accessing the state of the app I'd go with a global state atom and a small API to read/write into that state

Roman Liutikov 2025-10-15T14:59:24.003179Z

also if your reagent app is meant to be used as a library directly (not via iframe), then you most definitely want to make sure that the library is compiled w/o React otherwise your customer will run two versions of React, one in their app and another one in your app