Migrating a Backbone.js app to React incrementally using Web Components as the bridge
A developer at Thynk Web led the move of App Studio, a Backbone.js, Marionette and jQuery product, toward React micro-frontends. Because the product had to keep working and shipping features throughout, a full rewrite was ruled out in favour of an incremental, strangler-style approach. The key challenge was defining a boundary where Marionette views could host React components without knowing their internals. The solution was a Custom Element that mounts a React tree, taking inputs as properties and emitting outputs as DOM CustomEvents, with lifecycle handled through connectedCallback and disconnectedCallback. Old and new screens coexisted in the same Webpack build, and the existing model layer remained the source of truth during the transition.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in