While working on user profile page basics, I had to add support for subrouting on the client-side.
Luckily, with the URLPattern API, it's as simple as this
export const match = '/user/:userId/:tab?'
#javascript #frontend #webdev #buildinpublic #navigation #dev
Luckily, with the URLPattern API, it's as simple as this
export const match = '/user/:userId/:tab?'
#javascript #frontend #webdev #buildinpublic #navigation #dev
Comments
The "tabs" in the video are plain tags with hrefs so stuff like "open in new tab" still works