Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJonathan Grieve
Treehouse Moderator 91,253 PointsUpdating Create React App
We know that when we create a new create-react-app
` project, it comes with the latest version and dependencies. But what if the framework updates when you're in the middle of building your app?
How do you update to the latest version of CRA for a particular project? Is this even an issue? Thanks :)
1 Answer
Michael Liendo
15,326 PointsGood question. This is what is listed in the docs (https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#updating-to-new-releases)
"To update an existing project to a new version of react-scripts, open the changelog, find the version youβre currently on (check package.json in this folder if youβre not sure), and apply the migration instructions for the newer versions."
Hope that helps.
ps) the CRA docs are filled with goodies and is pretty well laid out/maintained, if you haven't had a chance to poke around, I'd encourage you to do so.
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsThanks Michael,
I'll definitely have a look. Thanks for pointing out the docs. I'm not necessarily good at finding all the info I need from docs! :)