You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
-32Lines changed: 0 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -774,36 +774,6 @@ function requestHandler(req, res) {
774
774
http.createServer(requestHandler).listen(3000);
775
775
```
776
776
777
-
### `createRoutesFromArray`
778
-
779
-
<details>
780
-
<summary>Type declaration</summary>
781
-
782
-
```tsx
783
-
declarefunction createRoutesFromArray(
784
-
array:PartialRouteObject[]
785
-
):RouteObject[];
786
-
787
-
interfacePartialRouteObject {
788
-
path?:string;
789
-
caseSensitive?:boolean;
790
-
element?:React.ReactNode;
791
-
children?:PartialRouteObject[];
792
-
}
793
-
794
-
interfaceRouteObject {
795
-
caseSensitive:boolean;
796
-
children?:RouteObject[];
797
-
element:React.ReactNode;
798
-
path:string;
799
-
}
800
-
```
801
-
802
-
</details>
803
-
804
-
`createRoutesFromArray` is a helper that fills in the (potentially) missing pieces in an array of route objects. It is used internally by [`useRoutes`](#useroutes) to create route objects.
805
-
<aname="createroutesfromchildren"></a>
806
-
807
777
### `createRoutesFromChildren`
808
778
809
779
<details>
@@ -1330,8 +1300,6 @@ function App() {
1330
1300
}
1331
1301
```
1332
1302
1333
-
See also [`createRoutesFromArray`](#createroutesfromarray).
0 commit comments