Simple web component for testing incapsulation in book.
npm install maksimyurkov/h1-sample
For all browsers + IE11
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="stylesheet" href="node_modules/cleanslate/cleanslate.css">
<script type="module" src="node_modules/h1-sample/h1-sample.js"></script>
<script nomodule src="node_modules/h1-sample/h1-sample-compiled.js"></script>
<h1-sample>Привет! Я заголовок внутри Shadow DOM!</h1-sample>
npm run build