Skip to content

Commit c56873f

Browse files
authored
Fix tsc error related to the ReactMarkdown import syntax.
Fix `src/pages/admin/markdown/Markdown.tsx:77:26 - error TS2604: JSX element type 'ReactMarkdown' does not have any construct or call signatures.` Related to, remarkjs/react-markdown#207 -- Since the `tsconfig.json` already has `allowSyntheticDefaultImports: true` all that is needed to resolve this is to import it as the explicit import name instead of `* as ExplicitImportName`.
1 parent c2b6d62 commit c56873f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/admin/markdown/Markdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import classNames from 'classnames';
3-
import * as ReactMarkdown from 'react-markdown';
3+
import ReactMarkdown from 'react-markdown';
44
import {
55
Grid,
66
Theme,

0 commit comments

Comments
 (0)