stevekinney / star-wars-characters-react-state

27 stars 54 forks source link

changed useState(error) to useState(null) to be consistent with video #33

Open lukasz-pekala opened 2 years ago

lukasz-pekala commented 2 years ago

Setting useState(error) is the same as useState(undefined) since error is undefined at this time but this is not consistent with the video

image

FYI @stevekinney