Created
November 26, 2015 20:49
-
-
Save josser/ab172324fe718ea06253 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import AceEditor from 'react-ace'; | |
import brace from 'brace' | |
import sql from 'brace/mode/sql'; | |
import xcode from 'brace/theme/xcode'; | |
export default class Explorer extends Component { | |
constructor(args) { | |
super(args); | |
this.handleChangeQuery = this.handleChangeQuery.bind(this); | |
} | |
state = { | |
aaa: '' | |
} | |
handleChangeQuery(value) { | |
this.setState({aaa: value}); | |
} | |
render() { | |
return ( | |
<AceEditor | |
mode="sql" | |
theme="xcode" | |
name="blah1" | |
height="6em" | |
onChange={this.handleChangeQuery} | |
/> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment