nefayran / react-vite-federation

Short example for vite-plugin-federation and react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React - Vite Federation Demo

This example demos consumption of federated modules from a vite bundle. app (react based) depends on a component exposed by shared app (react based).

Running

First, run pnpm install, then pnpm build and pnpm preview. This will build and serve both shared and app on ports 5000, 5001 respectively.

CTRL + C can only stop the host server. You can run pnpm stop to stop all services.

About

Short example for vite-plugin-federation and react


Languages

Language:CSS 46.7%Language:JavaScript 44.3%Language:HTML 9.0%