Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

基于single-spa-react的非常简单基础的微前端应用

License

NotificationsYou must be signed in to change notification settings

single-spa-react/single-spa-react-simple

Repository files navigation

single-spa-react-simple 非常简单基础的微前端demo 🚀🚀🚀,适合没有相关开发经验或者有非常丰富经验需要定制开发的同学!没有任何状态管理库!

DocumentationMaintenanceLicense: MIT

⌨️ 本地开发

$ git clone git@github.com:single-spa-react/single-spa-react-simple.git$cd single-spa-react-simple$ npm install$ npm start

注意⚠️

react-router-dom v6版本的使用方式有较大改动:

Switch --> Routes

Component ---> element

<Routes>{routes.map((route,index)=>(<Routekey={index}routeKey={route.key}exact={route.exact}path={route.path}element={route.element}/>))}</Routes>

打开浏览器访问http://127.0.0.1:8000/project1/。

相关资料:

1,项目依赖包梳理:https://segmentfault.com/a/1190000019006667

相关推广

  1. https://github.com/xlei1123/daymanage

    这是一个使用 umi 开发的项目,想学习 umi 的新手可以学习一下

  2. https://github.com/xlei1123/dtext

    前端文案默认值处理利器,统一定制修改,同时支持使用时特殊指定

About

基于single-spa-react的非常简单基础的微前端应用

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp