Skip to content

Commit f397a83

Browse files
authored
chore: tsc error related to the ReactMarkdown import syntax in Home.tsx.
Fix `src/pages/public/Home.tsx:163:22 - 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 f397a83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/public/Home.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 * as intl from 'react-intl-universal';
3-
import * as ReactMarkdown from 'react-markdown';
3+
import ReactMarkdown from 'react-markdown';
44
import { Dispatch, Action } from 'redux';
55
import { connect } from 'react-redux';
66
import { Link } from 'react-router-dom';

0 commit comments

Comments
 (0)