React projects

From wikinotes
Revision as of 21:31, 10 December 2022 by Will (talk | contribs) (Will moved page React environments to React projects without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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-app
node_modules/
public/
src/
package.json
package-lock.json
npm update     # install requirements
npm start      # run auto-reloading dev server localhost:3000
npm test       # run tests
npm run build  # build/minify into build/ directory