React: Create React App: Difference between revisions
From wiki.jacobjohns.com
jwiki>jjohns Created |
m 3 revisions imported |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 4: | Line 4: | ||
]] | ]] | ||
<hr /><br /> | |||
# Go to working directory where the project will live. | # Go to working directory where the project will live. | ||
#* <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]. | ||
Latest revision as of 16:06, 27 July 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.
