1
我越來越即使我做了綁定「_this2.SetState不是一個函數陣營本土陣營 - _this2.SetState不是一個函數
這裏下面的錯誤是我的代碼
// Subscribers to selected team change
const subToNewDataChange = subscribe('newData', state => {
const random = Math.random() * (100 - 15) + 15;
// Updates the state with the connection change and re renders the view
this.setState({key:random }, function() {
this.forceUpdate();
}.bind(this));
});
很高興聽到這個問題解決:)乾杯! –