Links
If you visit the routes by directly typing it into the browser, that works just fine, but linking to a route in your app requires syntax beyond the <a> tag element.
We'll cover the following...
This lesson is about how to link to pages in your app. This includes all pages: ones that are created from placing a JS file in that pages folder, as well as ones that you created as dynamic routes.
Let me give you an example. If you go to this page in the browser, i.e., http://localhost:3000/search/cats
, your first instinct is that you can link to it from another page in your app like this <a href="http://localhost:3000/search/cats">Go here</a>
. ...