React - Getting Started
create-react-app
npx create-react-app [app_name]
Typescript
npx create-react-app [app_name] --template typescript
references:
- reactjs.org (opens in a new tab)
- create-react-app docs (opens in a new tab)
- adding typescript (opens in a new tab)
@vitejs/app
npm init @vitejs/app [app_name] --template react
TypeScript
npm init @vitejs/app [app_name] --template react-ts
references:
- vitejs.dev (opens in a new tab)
- https://github.com/vitejs/vite/tree/main/packages/create-app (opens in a new tab)
create-snowpack-app
npx create-snowpack-app <app_name> --template @snowpack/app-template-react-typescript [--use-yarn | --use-pnpm | --no-install]
# or
npx create-snowpack-app <app_name> --template @snowpack/app-template-react
references:
- https://github.com/snowpackjs/snowpack/tree/main/create-snowpack-app/cli (opens in a new tab)
- https://www.snowpack.dev/tutorials/react (opens in a new tab)
- https://www.snowpack.dev/ (opens in a new tab)
- https://www.snowpack.dev/concepts/build-pipeline#bundle-for-production (opens in a new tab)
- https://www.snowpack.dev/posts/2021-01-13-snowpack-3-0 (opens in a new tab)
Next.js create-next-app
npx create-next-app [app_name]
reference: nextjs.org (opens in a new tab)
Gatsby
npm init gatsby
# interactive setup
reference: gatsbyjs.com (opens in a new tab)