react-bash
react-bash copied to clipboard
access history from main app
Hi there - As I understand, each time something is typed/returned, it appends to the history array and state.
Is there a way to access history on an ongoing basis?
I'd like to do something like:
- user cat's some file
- file prints UUID
- if history.find UUID then trigger some action.. maybe show a button
Similarly if, history gets beyond some count, maybe i auto trigger help.
Is this possible?