hyperdom-ace-editor
v1.1.0
Published
A hyperdom component that embeds the ace editor
Downloads
4
Readme
hyperdom-ace-editor
A hyperdom component that embeds the ace editor.
Example
var hyperdom = require('hyperdom');
var AceEditor = require('hyperdom-ace-editor');
require('brace/mode/javascript');
require('brace/theme/monokai');
class App {
constructor () {
this.code = 'var x = 123'
}
render () {
return <div>
<AceEditor theme="monokai" mode="javascript" binding="this.code" />
<textarea binding="this.code" />
</div>
}
}
hyperdom.append(document.body, new App());
License
MIT