in docs-components/Index.tsx [49:59]
render() {
return <>
<div className="demoHeader">
<span>SARIF Viewer</span>
<span style={{ flexGrow: 1 }}></span>
<input ref="inputFile" type="file" multiple={false} accept="*.sarif" style={{ display: 'none' }}
onChange={async e => {
e.persist()
this.loadFile(Array.from(e.target.files)[0])
}} />
<input type="button" value="Open..." onClick={() => (this.refs.inputFile as any).click() } />