How do we populate product data getting from backend application
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?
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.