How to dynamic routes

Guys I am making a social media and in the web app at the time of signup it makes a reference of the username in the database now I need to use the username and I need to make dynamic route for profile page
For example: example.com/username(which is unique)
and I don’t know how to make this functionality

Hey @elbinbinil4256814715,

I believe React-Router is what you’re looking for. Specifically the match props, I’ve attached a link to the docs for React-Router. It’s worked well for me in the past.

https://reactrouter.com/web/api/match

I hope this helps you out! I actually used this strategy for the Reddit Client project from the Front End Path. Feel free to reach out if you have more questions.