ViteSandbox Client Example

This repo is used to show the usage of ViteSandbox.

You can try ViteSandbox in the page:

https://mcuking.github.io/vitesandbox-client-example/

image

Usage

Usage Example Code:

import Sandbox from './sandbox';

const files = {
  '/package.json': JSON.stringify(packageJson),
  '/index.html': htmlCode,
  '/src/index.js': entryCode,
  '/src/index.less': lessCode,
  '/src/App.js': appCode,
};

<Sandbox
  bundlerURL="https://mcuking.github.io/vitesandbox-client/"
  files={files} />

For more details, please check this repo code.

Related Projects

ViteSandbox Client Repo:

https://github.com/mcuking/vitesandbox-client