Skip to content

Commit 9a39d7c

Browse files
fedgranttimdorr
authored andcommitted
Documentation change (#3368)
* changed example route from users/:userId to :userId - this was causing a Invariant Violation error * Revert "changed example route from users/:userId to :userId - this was causing a Invariant Violation error" This reverts commit 4fa1230. * changed users/userId to :userId
1 parent 870a7c8 commit 9a39d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ const routes = (
268268
<Route component={App}>
269269
<Route path="groups" components={{main: Groups, sidebar: GroupsSidebar}} />
270270
<Route path="users" components={{main: Users, sidebar: UsersSidebar}}>
271-
<Route path="users/:userId" component={Profile} />
271+
<Route path=":userId" component={Profile} />
272272
</Route>
273273
</Route>
274274
)

0 commit comments

Comments
 (0)