react-live-runtime
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

React Live

GitHub Playground DEMO BLOG

Usage

$ pnpm add react-live-runtime -E
// ./example/index.tsx
const sandbox = withSandbox({ React, console, alert, ...Arco });
const compiledCode = compileWithSucrase("<div>" + code + "</div>");
const Component = renderWithDependency(compiledCode, sandbox) as JSX.Element;
ReactDOM.render(Component, el);

Develop

$ npm i -g pnpm@8.11.0
$ pnpm install --frozen-lockfile
$ npx husky install 
$ chmod 755 .husky/pre-commit
$ pnpm run dev

/react-live-runtime/

    Package Sidebar

    Install

    npm i react-live-runtime

    Weekly Downloads

    35

    Version

    0.1.1

    License

    none

    Unpacked Size

    11.8 kB

    Total Files

    22

    Last publish

    Collaborators

    • touchczy