npx create-react-app@next --scripts-version=@next --template=cra-template@next my-js-app
npx create-react-app@next --scripts-version=@next --template=typescript@next my-ts-app
To update an existing app you can change the react-scripts
version in package.json
to next
and then run yarn
or npm install
You can see a list of all the changes in the 4.0 release here
Found another issue. This one with hot reloading. It's a little complicated unfortunately.
With this file: https://github.com/kentcdodds/react-fundamentals/blob/master/src/exercise/01.html
In v3, editing that file would trigger a reload. In v4 it does not. I'll try to dig into that a bit.