@times-visuals/web-component-harness
v1.2.0
Published
Harness for loading a React component as a web component
Downloads
2
Keywords
Readme
Web Component Harness
Harness for loading a React component as a web component
Installation
# Yarn
$ yarn add @times-visuals/web-component-harness
# npm
$ npm add @times-visuals/web-component-harness
Usage
const Demo = ({ name }) => <div>Hello, {name}</div>;
webComponentHarness(Demo, "sample-web-component");
return (
<div>
<sample-web-component name="Chris" />
</div>
);