Skip to content

Commit 59f2fae

Browse files
committed
use PureComponent for swipeable component
1 parent 95797ea commit 59f2fae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function useSwipeable(props) {
176176
return spread(props)
177177
}
178178

179-
export class Swipeable extends React.Component {
179+
export class Swipeable extends React.PureComponent {
180180
static propTypes = {
181181
onSwiped: PropTypes.func,
182182
onSwiping: PropTypes.func,

0 commit comments

Comments
 (0)