react-bootstrap-table icon indicating copy to clipboard operation
react-bootstrap-table copied to clipboard

How do we populate product data getting from backend application

Open radhakrishna67 opened this issue 5 years ago • 1 comments

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?

radhakrishna67 avatar Jul 10 '20 12:07 radhakrishna67

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.

manojsharma20 avatar Jul 31 '20 05:07 manojsharma20