I want to create an optional parameter url using react-router v4.2.0
I want the url to be like "/car-rental-service-in-manhattan-new-york" || "/car-rental-service-in-new-york";
Both url should render pages. Here manhattan is optional.
I was trying the path like path: "/:keywords-in(-: boroughs)?-:city".