When used preview model via React.lazy() cannot found MDEditor.Markdown
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 201
- Avg merge
- 12m
- Merged PRs (30d)
- 1
Description
const MDEditor = React.lazy(() => import('@uiw/react-md-editor'));
......
<Suspense fallback="...">
<MDEditor.**Markdown** source="Hello Markdown!" />
</Suspense>
Compilation Error in MDEditor.Markdown
declare type Editor = React.FC<PropsWithRef<MDEditorProps>> & {
Markdown: typeof MarkdownPreview;
};
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the compilation error with the React.lazy() example and inspect the shown Editor type declaration, especially the MDEditor.Markdown property. Done means the example compiles and MDEditor.Markdown remains available when MDEditor is loaded through React.lazy().
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100