How to use @nteract/editor - 1 common examples

To help you get started, we’ve selected a few @nteract/editor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nteract / nteract / packages / notebook-preview / src / editor.js View on Github external
// @flow
import React from "react";
import CodeMirrorWrapper from "@nteract/editor/lib/wrapper";

type Props = {
  children?: React$Element
};

const EditorView = (props: Props): React$Element => (
  <div>{props.children}</div>
);

export default CodeMirrorWrapper(EditorView, { readOnly: true });

@nteract/editor

The editor that lives inside cells in nteract

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular @nteract/editor functions