JSFiddle - React, Tailwind, and code Playground

by Dedi Wibisono

JavaScript

let idQuery = '';

$.ajax({
  url: 'https://exampleapi.com/product',
  type: 'GET',
  data: {page: idQuery},
  success:(response => {
    idQuery = response.number;
  })
})