We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d78fa5c commit 5a74d46Copy full SHA for 5a74d46
modules/StaticRouter.js
@@ -83,7 +83,7 @@ class StaticRouter extends React.Component {
83
{typeof children === 'function' ? (
84
children({ location, router: this.getChildContext().router })
85
) : (
86
- children
+ React.Children.only(children)
87
)}
88
</MatchProvider>
89
)
0 commit comments