Stateless function components cannot be given refs. Attempts to access this ref will fail. <div> <ListView ref={ el => this.lv = el } dataSource={ this.state.dataSource } renderScrollComponent={ () => <MyBody /> } renderRow={row} onEndReachedThreshold={100} onEndReached={this.getList} style={{ height: '500px', overflow: 'auto', }} /></div>在使用的時候報這個錯 而且為什么react有時候使用 refs 只能獲取組件實例 不能獲取真實的dom節(jié)點?
用 antd mobile 的ListView的時候遇到的問題
qq_笑_17
2019-02-25 12:27:29