Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1840902

Browse files
bomsyjbhoosreddy
authored andcommitted
[Breakpoint] use PureComponent (firefox-devtools#6583)
1 parent ae7e165 commit 1840902

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/Editor/Breakpoint.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// @flow
66

7-
import React, { Component } from "react";
7+
import React, { PureComponent } from "react";
88
import ReactDOM from "react-dom";
99
import classnames from "classnames";
1010
import Svg from "../shared/Svg";
@@ -33,13 +33,9 @@ type Props = {
3333
editor: Object
3434
};
3535

36-
class Breakpoint extends Component<Props> {
36+
class Breakpoint extends PureComponent<Props> {
3737
addBreakpoint: Function;
3838

39-
constructor() {
40-
super();
41-
}
42-
4339
addBreakpoint = () => {
4440
const { breakpoint, editor, selectedSource } = this.props;
4541

0 commit comments

Comments
 (0)