website: dynamically load rapidoc to prevent react errors
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
a074ea70e9
commit
828fe07fca
|
@ -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
|
||||
|
|
Reference in New Issue