React: Create React App: Difference between revisions
From wiki.jacobjohns.com
jwiki>jjohns Created |
jwiki>jjohns Spacing |
||
| Line 8: | Line 8: | ||
#* <code>cd c:\users\$env:USERPROFILE\gitDir\</code> | #* <code>cd c:\users\$env:USERPROFILE\gitDir\</code> | ||
# Create app with npx, cd to directory, and start the app. | # Create app with npx, cd to directory, and start the app. | ||
#* <code>npx create-react-app my-app</code> | #* <code>npx create-react-app my-app</code> | ||
#* <code>cd my-app</code> | |||
#* <code>npm start</code> | |||
# Browse to [http://localhost:3000/ localhost]. | # Browse to [http://localhost:3000/ localhost]. | ||
Revision as of 03:53, 2 March 2024

- Go to working directory where the project will live.
cd c:\users\$env:USERPROFILE\gitDir\
- Create app with npx, cd to directory, and start the app.
npx create-react-app my-appcd my-appnpm start
- Browse to localhost.
