Skip to content

Commit a779d83

Browse files
brikoutimneutkens
authored andcommitted
Rename withRoute to withRouter to be consistent (vercel#2881)
1 parent 03294bb commit a779d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/router/with-router.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
33
import hoistStatics from 'hoist-non-react-statics'
44
import { getDisplayName } from '../utils'
55

6-
export default function withRoute (ComposedComponent) {
6+
export default function withRouter (ComposedComponent) {
77
const displayName = getDisplayName(ComposedComponent)
88

99
class WithRouteWrapper extends Component {

0 commit comments

Comments
 (0)