class { onCreate() { this.state = { swapped: false, count: 0 }; } }