nitin42 / terminal-in-react

👨‍💻 A component that renders a terminal
http://terminal-in-react.surge.sh/
MIT License
2.12k stars 151 forks source link

command from state #78

Open tgiachi opened 4 years ago

tgiachi commented 4 years ago

It's possible to update commands property from state?

I have :

 <Terminal
          color='lime'
          backgroundColor='black'
          commands={this.state.commands}
          barColor='black'
          style={{ fontWeight: "bold", fontSize: "1em" }}
        />

But when i fetch command from remote, terminal won't update!

thank you!