React is a wonderful framework, isn't it?
I have been a react developer for some time now and I love it.
But recently I came across Next.js, which is built on top of React and it is definitely an improvement over the latter.
NextJS is a open-source framework for building React applications. It comes with server-side rendering, static-site generation, serverless functions, SEO support and so so much more, that too out of the box. Yay!
It's super fast
With the help of Server-side rendering and static-site generation loads the site blazing fast.
It's SEO friendly.
Server-side rendering fuels our goals to achieve levels of SEO, UX, performance, etc. Moreover, you can customize your own
<meta>tags to improve your Search Engine Optimisation to your liking by importing Head from
"next/head"and these meta tags will be appended to your page so that search engines could crawl swiftly. How cool is that!
Wide features out of the box
NextJS recommends creating a new Next.js app using
create-next-app, which sets up everything automatically for you. To create a project, run in the terminal after navigating to the desired directory:
npx create-next-app # or yarn create next-app
Here's a Codesandbox example of what you'll get:
In case you don't know ReactJS, I suggest you learn that first. There's plenty of resources available online, I will mention some of them down here.
Follow me on Github for exciting upcoming projects.