Updating how initial state is set
This commit is contained in:
@@ -13,11 +13,8 @@ class HorizontalLayout extends Base {
|
||||
spacing: 10
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
childTransforms: List()
|
||||
};
|
||||
state = {
|
||||
childTransforms: List()
|
||||
}
|
||||
|
||||
updateChildTransforms(childBoxes) {
|
||||
|
||||
@@ -15,11 +15,8 @@ class VerticalLayout extends Base {
|
||||
spacing: 10
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
childTransforms: List()
|
||||
};
|
||||
state = {
|
||||
childTransforms: List()
|
||||
}
|
||||
|
||||
updateChildTransforms(childBoxes) {
|
||||
|
||||
Reference in New Issue
Block a user