Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
change react-router to react-router-dom
Browse files Browse the repository at this point in the history
When react-router-dom is treated as an external dependency in webpack config, an error will be caused:
` You should not use the < the Route > or withRouter () outside a < the Router > `
  • Loading branch information
angular-moon authored and pedronauck committed Jan 21, 2019
1 parent d789677 commit 92f675f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/docz/src/utils/ScrollToTop.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReactNode, Component } from 'react'
import { withRouter, RouteComponentProps } from 'react-router'
import { withRouter, RouteComponentProps } from 'react-router-dom'

type ScrollToTopProps = RouteComponentProps<any>

Expand Down

0 comments on commit 92f675f

Please sign in to comment.