A UI preview error when using react live with markdown and docusaurus

Open
#411 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
react, typescript
Domain
frontend

Research direction

Start by reproducing the reported error with a custom component in a Docusaurus MDX file using react-live; the issue does not name a source file or test. Compare the failing preview with the working simple button example, then document or fix the behavior so supported custom components render without errors.

Written by the indexing model from the issue text.

Description

Is there an existing issue for this?
  • I have searched the existing issues
Code of Conduct
  • I agree to follow this project's Code of Conduct
Question
When I introduce a custom component or a slightly more complex custom component code under  live in the .mdx file, react live's real-time UI results will report errors in some locations. Only simple code can be used to preview the real-time successfully, such as <button>Hello Word</button>
Dominant language
TypeScript
Stars
4.6k
Forks
260
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FormidableLabs/react-live

All issues in FormidableLabs/react-live

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.