1 {/* It's possible to use regular expressions to control what param values should be matched.
2 * "/order/asc" - matched
3 * "/order/desc" - matched
4 * "/order/foo" - not matched*/}
5 <Route
6 path="/order/:direction(asc|desc)"
7 component={ComponentWithRegex}
8 />
9