Skip to content

Commit 0400aa9

Browse files
committed
Fix link in README
1 parent 29e8583 commit 0400aa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ Both configuration fields defined in [react-router-config](https://github.com/Re
114114
### component: string
115115
The core difference between [react-router-config](https://github.com/ReactTraining/react-router/tree/master/packages/react-router-config) configuration and [react-router-config-loader](https://www.npmjs.com/package/react-router-config-loader) configuration is that, the `component` field is path from which to resolve the react component class instead of the component class.
116116

117-
`component` supports relative path (and absolute path) to resolve local components, and module path to resolve components from node modules. By default, relative path will be resolved using the context path unless [`componentsDir`](#componentsDir) options is set.
117+
`component` supports relative path (and absolute path) to resolve local components, and module path to resolve components from node modules. By default, relative path will be resolved using the context path unless [`componentsDir`](#componentsdir-string) options is set.
118118

119119
If `componentName` field is not specified, the file name (without extention) is used as the name of the component.
120120

121121
### componentName: string
122122
Once specified, the value of `componentName` will be used as the import name of the component.
123123

124124
### path: string
125-
Absolute [path-to-regrex](https://www.npmjs.com/package/path-to-regexp) path used to match for the component if [`relativePath`](#relativePath) is not set. Otherwise, relative path should be used.
125+
Absolute [path-to-regrex](https://www.npmjs.com/package/path-to-regexp) path used to match for the component if [`relativePath`](#relativepath-boolean) is not set. Otherwise, relative path should be used.
126126

127127
### exact: boolean
128128
When `true`, will only match if the path matches the URL exactly. See https://reacttraining.com/react-router/core/api/Route/exact-bool

0 commit comments

Comments
 (0)