AllenFang / AllenFang/react-bootstrap-table
How do we populate product data getting from backend application
未關閉
- 主要語言
- JavaScript
- 星號
- 2.2k
- 分支
- 761
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hi AllenFang,
i am getting product data from database and trying to load that into table and could not succeeded.
I am using following piece of code for loading data into table,
componentWillMount() {
Axios.get('http://localhost:8080/product')
.then(response => {
return response.data;
})
.then(data =>
this.setState({
products: data
})
)
}
Could you please suggest me how i can achive this?
貢獻指南
評估
這個 Issue 還沒有評估資料。