Skip to content

Commit

Permalink
Revert "Added documentation for new sub-route matching (#177)"
Browse files Browse the repository at this point in the history
This reverts commit adb6f2a.
  • Loading branch information
barankyle authored May 31, 2024
1 parent 5135342 commit eb2c097
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/manual/02_concepts/01_projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ The `thumbnail` property is a string that must contain a URL to an image that wi

### Routes
The `routes` property enables users to customise the various URL paths of their website utilizing dynamic loading of modules.
- Key: Represents the path _(with leading forward slash included)_ to the resource.
- If the route key ends with `/*`, then it will match all sub-paths of that route, but not the base route itself. e.g. `/test/*` will match `/test/test` and `/test/othertest`, but not `/test`
- If the route key ends with `*`, but the `*` is not preceded by a `/`, then it matches the base route and all sub-paths of that route. e.g. `/test*` will match `/test`, `/test/test`, and `/test/othertest`
- If the key does not end with either of the above, then it will just match the exact route. e.g. `/test` will match `/test` but not `/test/test` nor `/test/othertest`
- Key: Represents the path _(with leading forward slash included)_ to the resource,
- Value: Represents a react component object which gets wrapped with `React.lazy()`
- `props`: Passes options into the `react-dom-router.Route` component corresponding to the route.

Expand Down

0 comments on commit eb2c097

Please sign in to comment.