Updating how initial state is set
This commit is contained in:
parent
13dc496a02
commit
6c4972e726
@ -4,11 +4,8 @@ import PropTypes from 'prop-types';
|
||||
import RavenError from 'components/RavenError';
|
||||
|
||||
class RavenBoundary extends React.Component {
|
||||
constructor() {
|
||||
super();
|
||||
this.state = {
|
||||
state = {
|
||||
error: null
|
||||
};
|
||||
}
|
||||
|
||||
componentDidCatch(error, errorInfo) {
|
||||
|
@ -13,11 +13,8 @@ class HorizontalLayout extends Base {
|
||||
spacing: 10
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
state = {
|
||||
childTransforms: List()
|
||||
};
|
||||
}
|
||||
|
||||
updateChildTransforms(childBoxes) {
|
||||
|
@ -15,11 +15,8 @@ class VerticalLayout extends Base {
|
||||
spacing: 10
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
state = {
|
||||
childTransforms: List()
|
||||
};
|
||||
}
|
||||
|
||||
updateChildTransforms(childBoxes) {
|
||||
|
Loading…
Reference in New Issue
Block a user