AllenFang / AllenFang/react-bootstrap-table
How do we populate product data getting from backend application
Open
- Dominant language
- JavaScript
- Stars
- 2.2k
- Forks
- 761
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.