@lilonga/code-editor
v0.1.5
Published
Code editor component for React. Based on the Ace editor.
Downloads
6
Readme
@lilonga/code-editor
Code editor component for React. Based on the Ace editor.
[]
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