I'm SO confused and any help would be appreciated. I need to pull information from a jsonp api.
<script>
$(document).ready(function() {
$.ajax({
url: 'url?callback=parametername',
data: {
check: 'code'
},
jsonp:"parametername",
dataType: 'jsonp',
success: function(result) {
console.log(result);
}
});
});
</script>
With this code above I am able to pull all information from the api and display it in the console of the browser. However I do not want to display it in the console - instead I want to display it on the web app that I'm building. Further, I want to display only small sections of the information rather than all of the information. What code do I need to add to do this? Or do I need to change anything? And the reason I put React in the title is because I need to post it to codesandbox, and unfortunately it looks like codesandbox only uses react rather than jquery, so even if the jquery issue is resolved, I'm not sure how to get this live on codesandbox, so if it's possible to explain the react version of this to me as well, that would be SO appreciated! Thank you!