/map-props-to-element

React Bridge to Web Components

Primary LanguageTypeScript

React Bridge to Web Components

import mapsPropsToElement from "@hyanmandian/map-props-to-element";

function Example() {
  const elRef = useRef();

  return (
    <example-of-web-component ref={mapsPropsToElement({
      ref: elRef,
      onChange: () => {},
      disabled: true,
    })}></example-of-web-component>
  );
}