i want to use this ajax command in fetch command in react js
var data = {
resource_id: '5f5afc43-639a-4216-8286-d146a8e048fe', // the resource id
};
$.ajax({
url: 'https://data.gov.il/api/action/datastore_search',
data: data,
dataType: 'json',
success: function (data) {
console.log(data);
}
});
how can i use that command in Fetch command?