INNER CODE UNIT · JavaScript
Main
composerize/composerize · packages/composerize-website/src/Main.js:15
export default class Main extends Component {
constructor(props) {
super(props);
this.state = {
command: defaultCommand,
compose: '',
version: 'latest',
indent: 4,
output: Composerize(defaultCommand),
error: '',
erroredLines: [],
};
this.onCommandInputChange = this.onCommandInputChange.bind(this);
this.onComposeInputChange = this.onComposeInputChange.bind(this);
this.onSelectChange = this.onSelectChange.bind(this);
this.onIndentChange = this.onIndentChange.bind(this);
}