Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Next.js Tutorial

Next.js Tutorial

Next.js is an open-source framework based on React, used to build fast, modern web applications.

Next.js is used to build modern web applications with high-performance server-side rendering (SSR) and static generation (Static Generation).

Next.js is developed and maintained by Vercel, aiming to simplify the React application development process while providing powerful performance optimization and development experience.

Relationship with React

React is a JavaScript library for building user interfaces, while Next.js is a framework built on React.

React focuses on building UI components, while Next.js provides more functionality and structure, helping developers solve some tedious development problems in React, such as routing, data fetching, and page rendering.

Who should read this tutorial?

As long as you have a basic knowledge of HTML and CSS, you can read this tutorial and then develop your own website.

Next.js is suitable not only for individual developers to quickly set up projects, but also for large teams to build complex full-stack applications.

Next.js has a low entry barrier; it is built on React, which is currently one of the most popular front-end frameworks.

If you already have some understanding of React, learning Next.js will be easier.

Knowledge you need before reading this tutorial:

Before you start reading this tutorial, you must have a basic knowledge of HTML, CSS, and JavaScript. If you are not yet familiar with these concepts, we recommend reading our tutorials first:

Next.js Example

By default, Next.js creates an index.js file in the pages folder; this is the application's home page. We can modify this file's code to the following:

Next.js Example

export

default

function

Home

(

)

{

return

<

div

Hello

,

World

!

div

;

}

Main Features

Reference Links

Next.js Official Website:https://nextjs.org/

Next.js Official Documentation:https://nextjs.org/docs

GitHub Source Code:https://github.com/vercel/next.js