I am attempting to use this for a school project, I am building in REACT, is there anything I need to change? #6
Dystopiatron
started this conversation in
General
Replies: 2 comments 2 replies
-
No. You just need to run npm install npm install comicbooks-api then import it import comicsApi from 'comicbooks-api'; and run the functions. useEffect(() => {
comicsApi.getComicsThroughSearch(query, 1)
.then(results => {
setIss(results);
})
.catch(console.error)
}, [query]); |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have not tested the API in a long time so let me know if something is not working |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am seeing .JS files, should I just switch those over to .JSX files?
Beta Was this translation helpful? Give feedback.
All reactions