Code Monkey home page Code Monkey logo

react-run-web's Introduction

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!

Contributors

As always, thanks to our amazing contributors!

Made with contributors.

License

Licensed under the MIT License.

react-run-web's People

Contributors

jaywcjlove avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-run-web's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update peaceiris/actions-gh-pages action to v4

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • actions/setup-node v3
  • peaceiris/actions-gh-pages v3
  • ncipollo/release-action v1
npm
package.json
  • @uiw/react-iframe ^1.0.2
  • @kkt/less-modules ^7.4.9
  • @kkt/ncc ^1.0.15
  • @kkt/raw-modules ^7.4.9
  • @kkt/scope-plugin-options ^7.4.9
  • @types/react ^18.0.34
  • @types/react-dom ^18.0.11
  • @types/react-test-renderer ^18.0.0
  • @uiw/react-github-corners ^1.5.15
  • @uiw/react-markdown-preview ^5.0.0
  • @uiw/react-split ^5.8.10
  • @uiw/react-textarea-code-editor ^3.0.0
  • @wcj/dark-mode ^1.0.15
  • husky ^8.0.3
  • kkt ^7.4.9
  • lint-staged ^15.0.0
  • prettier ^3.0.0
  • react ^18.2.0
  • react-dom ^18.2.0
  • react-router-dom ^6.10.0
  • tsbb ^4.1.5
  • @babel/runtime >=7.10.0
  • react >=16.9.0
  • react-dom >=16.9.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.