Relative Content

Tag Archive for javascriptreactjsarraysloopsslice

javascript setting a .map() range and update the range later

I’m building an app with React & JS which returns products from a json list inside a component, the array is outputted on the app using a .map() array. I’m also limiting the amount to return initially in the map using a .slice(0, 30) to return the first 30 products.