JS-Lesson | advanced JS topics - theories and algorithms/applications | Math library
kandi X-RAY | JS-Lesson Summary
kandi X-RAY | JS-Lesson Summary
Basic, intermediate and advanced JS topics - theories and algorithms/applications in the form of multiple lesson plans broken down in 3 parts!
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of JS-Lesson
JS-Lesson Key Features
JS-Lesson Examples and Code Snippets
Community Discussions
Trending Discussions on JS-Lesson
QUESTION
I'm somewhat new to React, but wholly new to NextJS, which I'm trying to teach myself. I've been going through the NextJS 'getting started' tutorial, as well as looking at some other tutorials. I don't understand why there is a need to distinguish between client routes and routes on the server, that is, why the client route given as an example uses a query, whereas the server route does not. I know that I am not seeing the forest for the trees, so if anyone can point me in the right direction of 'grokking' NextJS routes, I'd appreciate it.
From this tutorial, on the client side we might have
...ANSWER
Answered 2018-Dec-23 at 17:11If you look at the route
/blog/${slug}
Here slug can take different values as it a parameter. If you want NextJs to handle such routes you need to implement a route for each value that slug can take. For example.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install JS-Lesson
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page