dashName
dashName
> https://jsonplaceholder.typicode.com https://codesandbox.io/s/solitary-https-qp9lc?file=/src/App.js something like this.In this API you can't pass query param but i am doing something similar to this
> > In this API you can't pass query param > > Like this? > > * https://jsonplaceholder.typicode.com/posts?_start=0&_limit=10 > * https://jsonplaceholder.typicode.com/posts?userId=1 > > Also, doesn't your issue have to do...
> > > In this API you can't pass query param > > > > > > Like this? > > > > * https://jsonplaceholder.typicode.com/posts?_start=0&_limit=10 > > * https://jsonplaceholder.typicode.com/posts?userId=1 >...
> @zhoplocal, sorry for lately reply, thanks your clear explain, I think I've two solution to fix it, but not sure it is work: > > 1. I can try...
> Hi, you want that when a `+` button is clicked the counter increase just for that specific row of the button clicked? Is that correct? Yes
> Could you provide the code for that component so I can help you more efficiently? ........ constructor(props) { super(props); this.state = { counter: 0 }; } ...... const columns...
> The problem is in the state, all the rows of the table are receiving the same state variable, so when you update one row the state is the same...
> The items to be displayed in the table are received as props in the component? yes
> > > The items to be displayed in the table are received as props in the component? > > > > > > yes > > My approach is...
> Hi @dashName , your state should be like this > > ```js-jsx > state = { > tableCounters: [] > }; > ``` > > And your `addToCart` method...