2.0.0 • Published 5 months ago

@uiw/react-run-web v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Run Web

Buy me a coffee Build & Deploy Coverage Status Open in unpkg npm bundle size npm version Open in Gitpod

Online Code Editor for Rapid Web Development, Preview Demo.

Install

npm install @uiw/react-run-web

Usage

import RunWeb from '@uiw/react-run-web';

<RunWeb
  css="div {color:red;}"
  js="console.log('hello world!')"
  html="<div>hello world!</div>"
/>

Props

interface RunWebProps extends React.IframeHTMLAttributes<HTMLIFrameElement> {
  css?: string;
  js?: string;
  html?: string;
  title?: string;
  head?: React.ReactNode;
}

Online Code Preview

Preview Demo Example.

https://uiwjs.github.io/react-run-web#/?html=...&js=...&css=...

Development

Runs the project in development mode.

# Step 1, run first, listen to the component compile and output the .js file
# listen for compilation output type .d.ts file
npm run watch
# Step 2, development mode, listen to compile preview website instance
npm run start

production

Builds the app for production to the build folder.

npm run build

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

2.0.0

5 months ago

1.0.15

1 year ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago