Skip to content

A proof of concept that demonstrates react integration to third party websites

Notifications You must be signed in to change notification settings

galoberlyn/react_microfrontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microfrontend using Vite + React + TypeScript

A proof of concept that demonstrates react integration to third party websites

Alt text

What this solves

The Strengths and Benefits of Micro Frontends. Micro-frontend architectures decompose a front-end app into individual, semi-independent “microapps” working loosely together. This can help make large projects more manageable.

Use cases

  • Your team wants to integrate a react app (like payment gateways, independent buttons, custom frontends) to a Website that is out of your scope
  • SASS with a custom themes that align with where you integrate your widgets (Frontends)

Notes

  • The frontend is not necessarily needed to be in this repository, this can be served in a storage provider or any hosting services i.e https://example.com/widget1.esm.js

Demo

Clone this repo

Install dependencies and build the frontends

  cd widget1 && yarn && yarn build && cd ../widget2/ && yarn &&  yarn build

Go to the root folder Serve the host site, in this example we use PHP

  php -S localhost:1234

Access your in browser http://localhost:1234/

About

A proof of concept that demonstrates react integration to third party websites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published