componentWillUnmount() { term.destroy(); term = new Terminal({ theme: { background: '#090c0f' } }); term.write(this.state.cwd + '\r\n' + '$'); }
componentWillUnmount() { term.destroy(); term = new Terminal({ theme: { background: '#090c0f' } }); term.write(this.state.cwd + '\r\n' + '$'); }