Spin up React + Typescript projects complete with basic routing setup with a top nav, component shells, and the following packages & tools installed:
cd react-ts-starter
rm -rf .git
Rename your folder + app, update your README
& package.json
.
# Create new .git history with "main" branch
git init -b main
# Add and commit your files
git add .
git commit -m "first commit"
# Set origin to your new repo
git remote add origin <NEW_REMOTE_URL> (e.g: git@github.com:org/repo.git)
# Double-check the URL
git remote -v
# Set the main branch
git branch -M main
# Push your changes
git push -u origin main
yarn install && yarn upgrade all
You're ready to go!
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.