Made with create-react-library
npm install --save react-bate-terminal --force
import { useState } from 'react'
import './App.css'
import { BTerminal } from 'react-bate-terminal'
function App() {
const [show, setShow] = useState(false)
const data = [{
command : "hello",
output: "world"
},
{
command : "close",
output: "close"
},
{
command : "help",
output : "this is help message for your terminal"
}
]
const close = () =>{ // command is close and exit this is default
setShow(false);
}
return (
<div>
<BTerminal close={close} main="Bate Thar" data={data} />
</div>
)
}
export default App