react-terminal
react-terminal copied to clipboard
Run commands upon button press
Is it possible to run commands via button press?
For example
import React from "react";
function CommandButton() {
return (
<button
onClick={() => ReactTerminal.cd("home")}
>
Run Command
</button>
);
}
export default CommandButton;