Get started with single-spa CDN
MIT licensed
Single-Spa: library for micro-frontends, enabling independent, parallel development and deployment of components.
Tags:- single
- page
- application
- framework
- react
- angular
- vue
Stable version
Copied!
How to start using single-spa CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with single-spa CDN - cdnhub.io</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/es5/umd/single-spa.min.cjs"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/es5/umd/single-spa-react.min.cjs"></script>
<script src="https://unpkg.com/[email protected]/umd/react.development.js"></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js"></script>
</head>
<body>
<div id="app"></div>
<script>
const root = document.getElementById('app');
const ReactApp = () => {
return React.createElement('div', null, 'Hello Single-Spa!');
};
SingleSpa.registerApplication('ReactApp', () => {
return () => ReactDOM.render(<ReactApp />, root);
});
SingleSpa.start();
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.1.0
3.1.1
3.2.0
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
3.3.0
3.4.0
3.4.1
3.4.2
3.4.3
3.5.0
3.6.0
3.6.1
3.7.0
3.8.0
3.8.1
3.9.0
3.9.1
4.0.0
4.0.0-beta.1
4.0.0-beta.2
4.0.0-beta.3
4.0.0-beta.4
4.0.0-beta.5
4.0.0-beta.6
4.0.1
4.0.2
4.0.3
4.1.0
4.1.1
4.1.2
4.2.0
4.3.0
4.3.1
4.3.2
4.3.3
4.3.4
4.3.5
4.3.6
4.3.7
4.4.0
4.4.1
4.4.3
5.0.0
5.1.0
5.1.1
5.1.2
5.2.0
5.2.1
5.3.0
5.3.1
5.3.2
5.3.3
5.3.4
5.4.0
5.5.0
5.5.1
5.5.2
5.5.3
5.5.4
5.5.5
5.6.0
5.6.1
5.7.0
5.8.0
5.8.1
5.8.2
5.8.3
5.9.0
5.9.1
5.9.2
5.9.3
5.9.4
5.9.5
6.0.0
6.0.0-beta.0
6.0.0-beta.1
6.0.0-beta.2
6.0.0-beta.3
6.0.0-beta.4
6.0.1
6.0.2
*** 6.0.3
7.0.0-beta.0