Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we populate product data getting from backend application #2116

Open
radhakrishna67 opened this issue Jul 10, 2020 · 1 comment
Open

Comments

@radhakrishna67
Copy link

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?

@manojsharma20
Copy link

I have the same issue, I am also getting data from server in default pageSize, perPage etc. I want to draw pagination where data will be fetched from server using axios. we will pass pageSize, page number sorting to backend server and will render same on the page. If export functionality given that entire data would be exported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants