I’m curious to hear from anyone who has needed to mix JS frameworks with Halogen in PureScript. I’m especially interested in integration on both sides: mounting Halogen components in a React/Angular/Vue application, and mounting React/Angular/Vue components in a Halogen app.
At my company we’re migrating an Angular app and so we’ve had some experience mounting Halogen components in Angular. But we’ve taken an odd approach because we’re wholesale replacing the application — we mount our Halogen router in the sections of the app that are 100% Purescript, and in the rest of the app, the components we mount are fairly small / localized. This has worked well for us so far.
We may need to integrate a 100% Halogen application with a 100% JS application in the future, and that kind of major code sharing will be new to me.
For those of you who have done this or something like it, I’d love to hear more about strategies you took to make it work – or why it didn’t work.