live-code-editor

1.0.4 • Public • Published

Live Code Editor

Example:

import LiveCode from "../src/LiveCode";

<LiveCode initialValue={`let fizzBuzz = function (n) { }`} />;

Parameters

Parameters Default Value Type Options Example Use Reasoning
exact " " string let fizzBuzz = function (n) { } Add in a default function, comments or code to start people off
renderNow false boolean true Whether or not to immediately load the output. Get a button instead for rendering code on demand

Package Sidebar

Install

npm i live-code-editor

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

12.2 kB

Total Files

7

Last publish

Collaborators

  • lottie-logic