I could write something like this in react-router v5 "/user/?type(new|edit|view)/:user_id" and set it to Route path and Route was rending correcty in this cases:
- "user/new/51"
- "user/edit/12"
- "user/view/3"
but NotFound on this (that is not one of this new|edit|view):
"user/create/51"
How to reach this behavvior in react-router v6.
"/user/?type(new|edit|view)/:user_id" this is NotFound for any route now