0.1.5 • Published 5 years ago

@lilonga/code-editor v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@lilonga/code-editor

Code editor component for React. Based on the Ace editor.

[Screenshot
]

NPM

Install

npm install --save @lilonga/code-editor

Usage

Try out an editable version of the below example at Repl.it: https://repl.it/@lilonga/code-editor

import React, { Component } from 'react'

import CodeEditor from '@lilonga/code-editor'

export default class Example extends Component {
  render () {
    return (
      <CodeEditor 
        code="<h1>Header</h1>" 
        onChange={code => console(code)}
      />
    )
  }
}

License

MIT © Luka Kakia

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago