...

/

Static and Dynamic Routing

Static and Dynamic Routing

Let's learn how to create static and dynamic URL routes in our application.

What is static and dynamic routing?

Routing can be of two types, static or dynamic. To understand static routing, we can consider a specific URL that leads to a specific page. For example, /home take us to the home page of a website and /about takes us to the about page. However, these are not the only kinds of URLs. In social media sites, we can have URLs such as /profile/101011 and /profile/102045. These URLs lead us to the ...