Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae7e165 commit 1840902Copy full SHA for 1840902
src/components/Editor/Breakpoint.js
@@ -4,7 +4,7 @@
4
5
// @flow
6
7
-import React, { Component } from "react";
+import React, { PureComponent } from "react";
8
import ReactDOM from "react-dom";
9
import classnames from "classnames";
10
import Svg from "../shared/Svg";
@@ -33,13 +33,9 @@ type Props = {
33
editor: Object
34
};
35
36
-class Breakpoint extends Component<Props> {
+class Breakpoint extends PureComponent<Props> {
37
addBreakpoint: Function;
38
39
- constructor() {
40
- super();
41
- }
42
-
43
addBreakpoint = () => {
44
const { breakpoint, editor, selectedSource } = this.props;
45
0 commit comments