Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/steelydylan/react-embed-devtools

React embeddable devtools
https://github.com/steelydylan/react-embed-devtools

Last synced: 3 months ago
JSON representation

React embeddable devtools

Awesome Lists containing this project

README

        

# ReactEmbedDevTools

ReactEmbedDevTools is a library that allows you to inspect inside an iframe with the embedded DevTools

This library is used for programing learning platform [https://mosya.dev](https://mosya.dev)

## Demo

[https://react-embed-devtools.vercel.app/](https://react-embed-devtools.vercel.app/)

## Installation

```bash
npm install react-embed-devtools
```

## Usage

You should embed the `embedChobitsu` function in the head tag of the html you want to inspect.

```jsx
import React from "react";
import { EmbedDevTools, embedChobitsu } from "react-embed-devtools";

const html = `




Document
${embedChobitsu()}

h1 {
color: #333;
font-size: 32px;
}

Hello World


console.log('Hello World')

`;

function App() {
return (

);
}
```