React projects: Difference between revisions
From wikinotes
(→npx) |
m (Will moved page React environments to React projects without leaving a redirect) |
(No difference)
|
Latest revision as of 21:31, 10 December 2022
TODO:
more thorough
Documentation
react environments https://reactjs.org/docs/create-a-new-react-app.html
npx
Creates an empty nodejs react project with jest as a test-suite.
pacman -S nodejs npx create-react-app my-appnode_modules/ public/ src/ package.json package-lock.jsonnpm update # install requirements npm start # run auto-reloading dev server localhost:3000 npm test # run tests npm run build # build/minify into build/ directory