0.0.2 • Published 4 years ago
@harmansran/my-web-component v0.0.2
Defines a new custom element, <simple-demo />
.
Installation
Via npm:
npm install @harmansran/my-web-component
Via unpkg:
<script src="https://unpkg.com/@harmansran/my-web-component/build/index.js" />
Usage
If installed via npm
, import with:
import '@harmansran/my-web-component';
Then use the <simple-demo />
custom element in your host application.
<simple-demo />
mounts a React component in a <div />
shadow root that it appends to your document.