Skip to content

Files

Latest commit

Jan 22, 2025
d4851d4 · Jan 22, 2025

History

History

react-preact-runtime-typescript

README.md

React and Preact Integration at Runtime

This example demonstrates how to run a React-based application (shell) while consuming a remote Preact-based application (remote) dynamically at runtime.

  • shell: is the host application using React and ReactDOM.
  • remote: The guest application built with Preact. It provides an injector function that allows the host application (shell) to import and mount it into a specified <div> element.

How to Run the Demo

Run pnpm run start. This will build and serve both shell and remote on ports 3001 and 3002 respectively.