In this article, we will learn about the Fast refresh in the NextJS project. Fast Refresh is a new hot reloading experience that gives you instantaneous feedback on edits made to your React components. It is now enabled by default for all projects on Next.js 9.4 or newer.
NextJS is a React-based framework. It has the power to Develop beautiful Web applications for different platforms like Windows, Linux, and mac. The linking of dynamic paths helps in rendering your NextJS components conditionally.
Create NextJS Application: You can create a new NextJS project using the below command:
npx create-next-app gfg
Project Structure: It will look like this.
All the NextJs applications with version 9.4 or newer come with the Fast refresh feature that gives you instantaneous feedback on edits made to your React components.
import React from
<h1>This is File</h1>
Here we created a simple react component named index and inside this component, we add one heading. Now after running the application if we make any changes in our gfg.js file then the changes will be visible within a second, without losing component state.
Steps to run the application: Run the below command in the terminal to run the app.
npm run dev
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses
are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!