react-native 簡單記錄一下

react 衝鴨! 1. 子組件 傳遞方法並帶上參數 1. 子組件 傳遞方法並帶上參數 父組件單獨寫: <div onClick={this.handleItemDelete.bind(this,index)}> </div> 父子組件寫法 父組件: constructor(props) { super(props) this.handleItemDelete = this
相關文章
相關標籤/搜索