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>cd my-app</code> <code>npm start</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

#
#


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