install next js
npx create-next-app folder-name
nextjs install
# if you want typescript yarn create next-app --typescript
Next js npm install
npm install next react react-dom
Source: www.educative.io