React App Setup
These steps provide an overview of creating a React app. The text provides a version of this process in chapter 1 (second edition).
- Download and install node
- Open terminal (cmd on windows, Terminal app on Mac)
- Change directory (use
cd command) to a folder where you have your work (Example: cd C:\Users\cmiller2\LocalDocuments\it432)
- Create react app: npm create vite@latest my-app1 -- --template react
- Change directory to folder just created: cd my-app1
- npm install
- npm run dev
- Control-click the URL or copy it to Chrome browser to see the start up app
- Using VS Code, edit the file App.jsx in the src folder to create you own content, replacing content in the return statement between the empty html tags