Mario Lemus
Posted on March 2, 2022
Getting started
In this series of posts, I will be teaching you. How to easily start learning Next.js. By simplifying the learning process, being super practical and avoiding over-technical terms.
I hope you, like it. And give it a try, maybe you will discover something awesome and fall in love with this modern React.js Framework .π±βπ€π
To begin with, execute the following command on your terminal:
npx create-next-app@latest
Or:
yarn create next-app
After the installation finish, go to the folder you created and open it on your favorite IDE. Then execute the following command, to start the development server.
npm run dev
And voilΓ , you just begin using Next.js ππβ¨
If you want to begin personalizing your views.
Go to Pages/index.js
There you will see your home page component with some Next.js extra info.
By the way, by putting ππ.jsππ, files into Pages/, folder. You automatically are using built-in Next.js routing, so YOU DONΒ΄T REQUIRE REACT-ROUTER-DOM INSTALLATION AND CONFIGURATION.
Here you have it. πββοΈπ
- Create about.js into Pages/ and write some test data, like Hello World! From About File.
- Then go to your browser and type, in your URL bar, localhost:3000/about.
- Then you will be able to see automatically your about.js info displayed in your browser.
Well, this is the end of the first part ππ«, If you would like to support my content go to: BuyMeACoffee, and buy me a coffee! ππππ
Posted on March 2, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.