Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 584 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 584 Bytes

Lit React Wrapper 1.0.0

Use React or Material-UI components in your lit-element web component.

Install

npm i lit-react-wrapper

Usage

// Import the lit-react-wrapper to your existing web component project
import "lit-react-wrapper";

// Import the react component
import {ProfileCard} from "my-react-project";

// Props to be sent to the react component
let props = {"name":"Isha Sharma","organization":"Fundwave"}

// Render the react component inside your web component
<lit-react-wrapper .element=${ProfileCard} .props=${props}></lit-react-wrapper>