AllenFang / AllenFang/react-bootstrap-table

How do we populate product data getting from backend application

Open
#2,116 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.