Next.js is a minimalistic framework for server-rendered React applications.
In this recipe, we are going to learn how to implement Next.js with Sass, and we will also get data from a service using axios.
Next.js is a minimalistic framework for server-rendered React applications.
In this recipe, we are going to learn how to implement Next.js with Sass, and we will also get data from a service using axios.
First, let's create a new directory called nextjs, initialize package.json, and finally create a new directory inside it:
mkdir nextjs
cd nextjs
npm init -y
mkdir src
Then we need to install some dependencies:
npm install next react react-dom axios node-sass @zeit/next-sass
Now that we have...