codedamn

Data fetching in React

Created by Codedamn about a year ago

0

No description provided

4 Comments

    0

    I couldn't get fetch to work like in the video. For me it only works if I add this before setUserData: .then(response => response.json())

    Anyone know why it's different in the video?

    0

    why not axios

    @aswincode

    Aswin P

    @aswincode

    0

    why we have to use ? for property description , when i try use {userData.name} or {userData.age} instead i getting error -userData not defined. What is difference getting proper output with ? (question mark)

    @master77

    master77

    @master77

    0

    Great, Thanks

    @farmanali6349

    Farman Ali

    @farmanali6349

Your comment