Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sibiraj-s/react-shadow

Render React app inside in shadow DOM
https://github.com/sibiraj-s/react-shadow

react shadow-dom web-components webpack

Last synced: 22 days ago
JSON representation

Render React app inside in shadow DOM

Awesome Lists containing this project

README

        

# react-shadow [![Tests](https://github.com/sibiraj-s/react-shadow/workflows/Tests/badge.svg)](https://github.com/sibiraj-s/react-shadow/actions)

> Render React app inside in shadow DOM.

### Polyfills

Webcomponents are not yet completely supported by all browsers, refer [Can I Use](https://caniuse.com/#search=webcomponents) for stats.

- [core-js](https://www.npmjs.com/package/core-js)
- [@webcomponents/shadydom](https://github.com/webcomponents/polyfills/tree/master/packages/shadydom)
- [@webcomponents/webcomponentsjs](https://github.com/webcomponents/polyfills/tree/master/packages/webcomponentsjs)

### Usage

Clone the repository

```bash
git clone https://github.com/sibiraj-s/react-shadow.git
```

Install the dependencies

```bash
npm install
```

Start the app

```bash
npm run dev
```

Build the app

```bash
npm run build
```