Build Micro frontends — Integrate Remote Pages as ReactJS overlay via iframe with postMessage API

Jen-Hsuan Hsieh (Sean)
A Layman
Published in
4 min readJun 24, 2023

--

Introduction

Thanks the component-based micro-frontend technologies, we‘re allowed to use the remote Angular or React component in our NextJS application directly.

What if we want to integrate an existed remote page into our application?

The iframe is the simplest and a traditional way to achieve that. It’s not elegant but useful because this way won’t be restricted by the framework we used for.

About this series

This series aims to learn different micro-frontend technologies to bridge the remote applications in different frameworks.

Overview of this article

We will go through the following topics in this article.

--

--

Jen-Hsuan Hsieh (Sean)
A Layman

Frontend Developer🚀 Angular • React • Nest • Electron • Micro-frontend • Monorepo Architecture • https://daily-learning.herokuapp.com/