@times-visuals/web-component-harness

1.2.0 • Public • Published

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>
);

Readme

Keywords

none

Package Sidebar

Install

npm i @times-visuals/web-component-harness

Weekly Downloads

0

Version

1.2.0

License

BSD-3-Clause

Unpacked Size

6.27 kB

Total Files

6

Last publish

Collaborators

  • danielbenclark
  • chrishutchinson
  • times-machine