remote-component:从URL动态加载React组件

时间:2024-05-21 06:46:46
【文件属性】:

文件名称:remote-component:从URL动态加载React组件

文件大小:168KB

文件格式:ZIP

更新时间:2024-05-21 06:46:46

TypeScript

远程组件 在运行时从URL加载React组件。 目录 渲染道具 React钩 创建一个远程组件 远程组件入门套件 使用Webpack创建一个远程组件 创建React App(CRA) 使用Next.js进行服务器端渲染 getServerSideProps 从Next.js调用getServerSideProps 这个怎么运作 内容安全政策(CSP) 备择方案 路线图 注意事项 什么是远程组件? 远程组件是在运行时从URL加载的。 它的使用方式与其他任何React Component的使用方式相同。 const url = "https://raw.githubusercontent.com/Paciolan/remote-component/master/examples/remote-components/HelloWorld.js" ; const HelloW


【文件预览】:
remote-component-master
----.eslintrc.yml(111B)
----.gitignore(30B)
----.babelrc(172B)
----media()
--------remote-component.png(41KB)
----changelog.config.js(1KB)
----package.json(2KB)
----commitlint.config.js(91B)
----package-lock.json(528KB)
----src()
--------createRemoteComponent.tsx(1KB)
--------components()
--------createRequires.ts(858B)
--------getServerSideProps.ts(680B)
--------getDependencies.ts(1KB)
--------fetchRemoteComponent.ts(782B)
--------__tests__()
--------hooks()
--------index.tsx(426B)
----.gitlab-ci.yml(884B)
----jest.config.js(267B)
----LICENSE(1KB)
----tsconfig.json(691B)
----.browserslistrc(37B)
----examples()
--------remote-components()
----README.md(15KB)
----.eslintignore(16B)
----jest.setup.js(229B)
----.prettierrc.yml(38B)
----.vscode()
--------settings.json(158B)
--------launch.json(731B)
--------tasks.json(312B)
----.npmignore(180B)

网友评论