Skip to content

Commit d8a45d8

Browse files
committed
Docs for component={null}
1 parent ed268eb commit d8a45d8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/index.md

+11
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,17 @@ properties which will be called before and after navigation correspondingly:
178178
...
179179
</Locations>
180180

181+
## Custom / No Router Component
182+
183+
Routers also accept a `component` prop, so you can change the rendered parent component:
184+
185+
<Locations component="section">...
186+
187+
You can also remove the wrapper entirely by passing a falsy value. This will render the matching
188+
route directly without wrapping.
189+
190+
<Locations component={null}>....
191+
181192
## Advanced usage
182193

183194
Advanced features include support for [full page server

0 commit comments

Comments
 (0)