Skip to content
Permalink
Browse files
fix(readme): useDynamicImport may return null (#3) (#4)
  • Loading branch information
lukasbach committed Jun 21, 2021
1 parent 125e5a1 commit 3278ff2dac5d23bcd39ef23575bbf0dea94eccc3
Showing 1 changed file with 4 additions and 0 deletions.
@@ -64,6 +64,10 @@ import { useDynamicImport } from 'docusaurus-plugin-react-docgen-typescript/pkg/
export const PropTable = ({ name }) => {
const props = useDynamicImport(name);
if (!props) {
return null;
}
return (
<table>

0 comments on commit 3278ff2

Please sign in to comment.