Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[website] s/class/className/ in MDX #4716

Closed
wants to merge 1 commit into from
Closed

Conversation

zpao
Copy link
Member

@zpao zpao commented Jun 14, 2024

These were generating warnings in dev mode. Docusaurus uses MDX which converts the entire markdown into React components. As such, you need to use the same props.

The site works but I think that's just because React ultimately passes everything onto the DOM node now. Better to just do the "right" thing.

FWIW MDX does mention this in their docs:
https://mdxjs.com/docs/what-is-mdx/#markdown-for-the-component-era

These were generating warnings in dev mode. Docusaurus uses MDX which
converts the entire markdown into React components. As such, you need to
use the same props.

The site _works_ but I think that's just because React ultimately passes
everything onto the DOM node now. Better to just do the "right" thing.

FWIW MDX does mention this in their docs:
https://mdxjs.com/docs/what-is-mdx/#markdown-for-the-component-era
@facebook-github-bot
Copy link
Contributor

@zpao has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@zpao merged this pull request in d61ce03.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants