r/learnreactjs • • Nov 08 '23
React fetch need help
Im new to react and was wondering if there is something special you need to do in order to fetch post data to a server? Or is it the same as regular javascript?
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] Nov 08 '23
Great! I usually write regular javascript and find fetch to be very intuitive to use. But I've noticed with react that you have to do extra crap all the time.. Usestate from what I can gather should be used when manipulating the module in real time, no? Wrapping the change in a usestate hook?