This repo is used to show the usage of ViteSandbox.
You can try ViteSandbox in the page:
https://mcuking.github.io/vitesandbox-client-example/
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.
ViteSandbox Client Repo: