Create a React Starter App
React is the most popular Javascript library for building web apps. The instructions below describe how to create a boilerplate app as a starter for any project.
​
1. Install node.js on your computer if you haven’t already.
​
2. Open a terminal and enter the following command. Replace “my-app” with the name of your app. Don’t enter the “%”, that is just the system prompt (yours will be different).
% npm create vite@latest my-app --template react
You’ll be prompted to choose a framework and variant. Choose “React” as the framework and “TypeScript” as the variant.
​
​
​
​
​
​
​
3. Run your new app. Replace “my-app” below with the name of your app.
% cd my-app
% npm install
% npm run dev
This will run your newly generated app “locally” in a browser with a "localhost" URL. Open http://localhost:5173/ in your browser to see your app.
​
The app doesn't do much but you now have a starter app which can be modified in Cursor to build all kinds of apps.
