React (and Next.js)
💡
This page mostly contains React snippet and CLI that I usually use. Sometimes, I also put some notes regarding React as a reminder.
Official Docs
Site Name | Description |
---|---|
React Docs Beta | Beta version of newest React Docs |
Official React Docs | Official React Docs |
Create React App | Create React App Docs |
React Vite | React using Vite as build tool |
Next.js Docs | Official Next JS Docs |
React TS Cheatsheet | React TS Cheatsheet |
Awesome React | A collection of awesome things regarding React ecosystem |
Bulletprof React | A simple, scalable, and powerful architecture for building production ready React applications. |
Getting Started
create-react-app
npx create-react-app <app_name>## oryarn create react-app <app_name>
# typescriptnpx create-react-app <app_name> --template typescript## oryarn create react-app <app_name> --template typescript
vitejs/app
npm init @vitejs/app <app_name> --template react## oryarn create @vitejs/app <app_name> --template react
# typescriptnpm init @vitejs/app <app_name> --template react-ts## oryarn create @vitejs/app <app_name> --template react-ts
Next.js
npx create-next-app <app_name># oryarn create next-app <app_name>
# TSnpx create-next-app@latest --typescript# oryarn create next-app --typescript