var app = app || {};
//var Codemirror = require('../../node_modules/react-codemirror/dist/react-codemirror.min.js')

(function() {
    app.APP_TEST = 1;
    app.STANDARD_TEST = 2;
    app.SERVER_TEST = 3;
    var TestButton  = app.TestButton;  
    var CodeEditor = app.CodeEditor; 
    function onChange(newCode) {
        console.log(newCode)
    }
    function updateCode(newCode){
        console.log(newCode);
    }
    var options = {
            lineNumbers: true,
            mode:'java'
        };

    function render() {
        ReactDOM.render( 
            //<TestButton btn_name="App Test" btnType={app.APP_TEST}/> ,
            React.createElement(CodeEditor, null),
            document.getElementById('main')
        );
    }
    render();
})();