使用React,Vue和Single-spa构建微前端(Micro Frontends)

使用React,Vue和Single-spa构建微前端(Micro Frontends)

React 其它杂项

访问GitHub主页

共172Star

详细介绍

Building Micro Frontends with React, Vue, and Single-spa

This code goes along with the blog post Building Micro Frontends with React, Vue, and Single-spa on Dev.to

Getting started

  1. Clone the repo
git clone https://github.com/dabit3/micro-frontend-example.git
  1. Install dependencies
yarn

# or

npm install
  1. Start the app
npm start
  1. Visit the following URLS:
# renders both apps
http://localhost:8080/

# renders only react
http://localhost:8080/react

# renders only vue
http://localhost:8080/vue