React-Router Interesting Updates

Hi,

I noticed some discussions about this recent change starting with version 6.5.
This finally helps me get rid of some routes and restructure some logic and I think this will help others.

Example (see the ‘?’ ):

<Route path=":lang?/about> will match:
    /:lang/about
    /about

2 Likes