facebook / relay

Relay is a JavaScript framework for building data-driven React applications.
https://relay.dev
MIT License
18.24k stars 1.8k forks source link

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

Open zpao opened 3 days ago

zpao commented 3 days ago

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 commented 3 days ago

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