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

Update CRA guide #1422

Merged
merged 2 commits into from
Dec 29, 2020
Merged

Update CRA guide #1422

merged 2 commits into from
Dec 29, 2020

Conversation

wooorm
Copy link
Member

@wooorm wooorm commented Dec 28, 2020

Create React App is the most looked at resource by users here on GitHub. But it’s suggesting an old, unmaintained, and buggy way to use MDX.

This instead updates the guide to use our maintained projects, without having to eject from CRA.

As CRA itself is an ever-changing “init” tool, which can support MDX by following a couple steps, I don’t think it’s wise to have an example in the project: we want folks to do npx create-react-app ..., not clone our custom example.

Not having CRA checked in also makes for a faster yarn install.

Perhaps developing our own CRA template might be nice for the future, but for now I’ve kept it at an up to date and working guide.

Related to GH-1015.
Related to GH-1388.

Closes GH-365.
Closes GH-589.

@wooorm wooorm added the 📚 area/docs This affects documentation label Dec 28, 2020
@vercel
Copy link

vercel bot commented Dec 28, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mdx/mdx/n09sm5fje
✅ Preview: Failed

[Deployment for 2e33237 failed]

Create React App is the most looked at resource by users here on GitHub.
But it’s suggesting an old, unmaintained, and buggy way to use MDX.

This instead updates the guide to use our maintained projects, without
having to eject from CRA.

As CRA itself is an ever-changing “init” tool, which can support MDX by
following a couple steps, I don’t think it’s wise to have an example in
the project: we want folks to do `npx create-react-app ...`, not clone
our custom example.

Not having CRA checked in also makes for a faster `yarn install`.

Perhaps developing our own [CRA
template](https://create-react-app.dev/docs/custom-templates) might be
nice for the future, but for now I’ve kept it at an up to date and
working guide.

Related to GH-1015.
Related to GH-1388.

Closes GH-365.
Closes GH-589.
@vercel vercel bot temporarily deployed to Preview December 28, 2020 16:31 Inactive
Copy link
Member

@ChristianMurphy ChristianMurphy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @wooorm, glad to see this doc update finally make it across the finish line. 🏁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 area/docs This affects documentation
Development

Successfully merging this pull request may close these issues.

Error when trying to run the create-react-app example
2 participants