Skip to content
sandpack-client / 2.17.0

sandpack-client 2.17.0

Install from the command line:
Learn more about npm packages
$ npm install @codesandbox/sandpack-client@2.17.0
Install via package.json:
"@codesandbox/sandpack-client": "2.17.0"

About this version

Component toolkit for live running code editing experiences

Sandpack client

This is a small foundation package that sits on top of the bundler. It is framework agnostic and facilitates the handshake between your context and the bundler iframe.

import { loadSandpackClient } from "@codesandbox/sandpack-client";

const main = async () => {
  const client = await loadSandpackClient("#preview", {
    files: {
      "/index.js": {
        code: `console.log(require('uuid'))`,
      },
    },
    entry: "/index.js",
    dependencies: {
      uuid: "latest",
    },
  });
}

Read more

Details


Assets

  • sandpack-client-2.17.0.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0