React component for displaying log output
npm install --save react-log-output
https://noobling.github.io/log-output-viewer/
import React from 'react'
import { LogViewer } from 'react-log-output'
export default function MyAppLogViewer() {
const myLogOutput = '...'
<LogViewer text={myLogOutput} />
}
Using typescript so you should be able to get intellisense to tell you the api. Otherwise just read the source