Interoperability of
Components built with
different frameworks
React Vancouver, May 22, 2019
Souvik Basu
@souvikbasu
Why?
• Isn’t React good enough by itself?
An example of Using React in Angular App
Anatomy of React, Angular, Vue, WC
http://tiny.cc/intercomp
The framework Apps are mostly hierarchical and manages the
Component tree within
• Not just an encapsulation of DOM but a representation of data
Side by Side
• Emitting events is not recommended across framework borders
• Use Windows messaging
iframe
• Better separation
• Duplication of framework payload
Custom Elements
• Wrap React, Angular, Vue inside Custom Element
• Convert to Custom Element
State Management
• Difficult to share Redux store as there are separate instances
• Can share state if they can access the same js object
Performance
• Too early for performance improvements in cross framework setup
• Micro frontends
Micro frontends
• Be Technology Agnostic
• Isolate Team Code
• Establish Team Prefixes
• Favor Native Browser Features over Custom APIs
• Build a Resilient Site
https://micro-frontends.org/
Thanks (Q&A)
@souvikbasu

Interoperability of components built with different frameworks