const {data: blogs, isPending, error} = useFetch('http://localhost:8000/blogs'); <BlogList blogs={blogs} title="All Blogs"/>
From the two lines above, is it possible to reference blog directly in the BlogList component or something missing?
blog
BlogList
We yet have to build the useFetch custom hook. If the useFetch custom hook is written then yes, we can do this. I will deal with all the leftover functions in part 3 and 4.
That's right. I've seen the updated article. Thanks
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
From the two lines above, is it possible to reference
blog
directly in theBlogList
component or something missing?We yet have to build the useFetch custom hook. If the useFetch custom hook is written then yes, we can do this. I will deal with all the leftover functions in part 3 and 4.
That's right. I've seen the updated article. Thanks