reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
10.86k stars 7.45k forks source link

Recommend installing exact RC #6944

Closed eps1lon closed 2 weeks ago

eps1lon commented 2 weeks ago

npm install react@rc would add the latest RC with a caret range to package.json which is generally unsafe since any prerelease may contain breaking changes. Especially in our case where commit hashes are encoded in the prerelease version. The caret range might match a version that was release earlier due to alphanumeric ordering.

npm install --save-exact react@rc will not use the caret range. This is the default behavior of for PNPM so I'm less concerned with documenting install instructions. You're on the save side if you just prepend a p to the NPM command.

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
19-react-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2024 8:51pm
react-dev ✅ Ready (Inspect) Visit Preview Jun 11, 2024 8:51pm
github-actions[bot] commented 2 weeks ago

Size changes

## 📦 Next.js Bundle Analysis for react-dev This analysis was generated by the [Next.js Bundle Analysis action](https://github.com/hashicorp/nextjs-bundle-analysis). 🤖 This PR introduced no changes to the JavaScript bundle! 🙌