Demonstration of vanilla web components and their unit tests. This is a proof-of-concept showing how vanilla JavaScript can support a single-page application (SPA).
npm install
to get dependenciesnpm run makeTestCertificates
to set up the localhost HTTPS certificatesnpm run start:localhost
to start the server in localhost- Navigate to
https://localhost:3000
in your browser and allow the test certificates - Visit the "Slideshow" page to learn more about the app
- Self-contained and reusable
- Usable in any framework or none
- Synchronous events and lifecycles
- Supported in all modern browsers
- ... although you'll need a polyfill for customized built-in components in Safari