skip to Main Content

How to hit an API in react native?

I am making a function of API and calling it use Effect and keeping this all in use state but I am getting a blank space! function api() { var requestOptions = { method: 'GET', redirect: 'follow', }; fetch('https://simple-books-api.glitch.me/books/2', requestOptions)…

VIEW QUESTION
Back To Top
Search