What is Next.js?
Next js is React Based Web framework with server side rendering capability. It is very fast and SEO Friendly.
Prerequisites
For starting this you have basic knowledge of JavaScript and React.
Setup
To install and create a Next.js projet you can use the handy node npx command 'create-next-app my-app-name'.
$ npx create-next-app my-app-name
# or
$ yarn create next-app
If you want to start with a TypeScript project you can use the --typescript flag:
$ npx create-next-app@latest --typescript
# or
$ yarn create next-app --typescript
Once the app is created you can launch it
Run npm run dev or yarn dev to start the development server on http://localhost:3000.
Visit http://localhost:3000 to view your application.
Edit pages/index.js
and see the updated result in your browser.
Top comments (0)