reactjs / reactjs/react.dev

[Docs] Babel package names are outdated

Open
#4,475 4 comments 0 reactions 0 assignees View on GitHub

@ is already working on this.

Since May 3, 2022.

  • #4624 by @someone — open
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

Currently, on the page Add React to a Website in the section "Add JSX to a Project", the instructions are to run

npm install babel-cli@6 babel-preset-react-app@3

These packages have been renamed @babel/cli and @babel/preset-react, respectively, so this should be updated.

I believe the next command with --presets react-app/prod should also be changed to --presets @babel/preset-react.

Thank you!

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.

Research direction

Check linked pull request #4624 first, then open the “Add JSX to a Project” section of the “Add React to a Website” page. Update the outdated package names and the --presets command, then verify that the documentation shows the current Babel package names.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.