- We need to install some npm packages, including react, next, react-dom
- Then we need to update package.json scripts tag with information for dev:, build: , start: as pointing to next js. ( next, next build, next start). Basically we are saying that next will take over for these commands
- Next, we need to create a main page inside pages directory, index.js. Just create a simple React component and export it.
- npm run dev => this will build code and start server at port: 3000 localhost. You can access in localhost:3000
- How things are done under hood? next -> react -> reactdom -> virtual dom -> html & javascript.
-
Notifications
You must be signed in to change notification settings - Fork 0
exploring next js
License
gansai/hello-next
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
exploring next js
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published