0

I have a Route which I want to see all the time.

<Route path={`/:cardId??viewMode=:viewMode?&set=:set?`}>

How should I set the route path if I want:

  1. cardId to be optional
  2. Then to start my query params with the second '?' symbol
  3. To set the viewMode and set optional BUT!!!! I don't want to see the 'viewMode' and 'set' strings if there is no options

I went through the docs but there is no info on how to implement this.

Alopwer
  • 611
  • 8
  • 22

0 Answers0