Skip to content

Destructing from the fetch response #1

Description

@Yk-97-Jr

hey in the HmoePage.jsx component why did you destruct the repos and userProfile :{const res = await fetch(/api/users/profile/${username});
const { repos, userProfile } = await res.json(); } i think we cant it dosent work in my code
and ifix it like the code snipet in the picture you did it like the code snipte in the video on youtube
Screenshot from 2024-02-23 02-01-51

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions