Socket
Book a DemoInstallSign in
Socket

lit-react-wrapper

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lit-react-wrapper

Use react or material-ui components in your lit-element web component.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
4
Created
Source

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>

FAQs

Package last updated on 10 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts