website: dynamically load rapidoc to prevent react errors

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-18 17:58:36 +02:00
parent a074ea70e9
commit 828fe07fca
1 changed files with 1 additions and 1 deletions

View File

@ -2,11 +2,11 @@ import React from "react";
import Layout from "@theme/Layout";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import useBaseUrl from "@docusaurus/useBaseUrl";
import "rapidoc";
function APIBrowser() {
const context = useDocusaurusContext();
const { siteConfig = {} } = context;
import('rapidoc');
return (
<Layout title="API Browser" description={siteConfig.tagline}>
<rapi-doc