Use purecomponent

Co-Authored-By: Travis Ralston <travpc@gmail.com>
pull/21833/head
Jorik Schellekens 2020-04-28 14:00:15 +01:00 committed by GitHub
parent bfba5e6cfe
commit a8407c9508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ type DotIProps = {
disabled: boolean;
}
class Dot extends React.Component<DotIProps> {
class Dot extends React.PureComponent<DotIProps> {
render(): React.ReactNode {
let className = "mx_Slider_dot"
if (!this.props.disabled && this.props.active) {