React Only Office
npm install --save react-only-officeyarn add react-only-officeimport React from 'react'
import OnlyOffice, { useOnlyOffice, OODocument } from 'react-only-office'
// @see https://api.onlyoffice.com/editors/advanced
const config = {...}
const Example = () => {
  render () {
    return (
      <OnlyOffice {...config}>
      <span>Only Office:</span>
      <MyComponent/>
      </>
    )
  }
}
const MyComponent = () => {
  const { getDownloadUrl } = useOnlyOffice();
  return <button onClick={async ()=>{
    const url = await getDownloadUrl();
    window.open(url)
  }}>Download file!</button>
}MIT © nlopezm