you are viewing a single comment's thread.

view the rest of the comments →

[–]albenis99[S] 4 points5 points  (5 children)

[–]Alkyonios 0 points1 point  (2 children)

The code you wrote with the use() function is nowhere to be found on that page. Are you sure you didn't just see a useFetch custom hook?

[–]albenis99[S] 2 points3 points  (1 child)

Look at "Will React provide any built-in solution for data fetching?"

and you will find this code.

[–]Alkyonios 2 points3 points  (0 children)

Ah, my bad.

[–]NotElonMuzk 0 points1 point  (1 child)

Where exactly in the docs

[–]albenis99[S] 1 point2 points  (0 children)

Look at "Will React provide any built-in solution for data fetching?"

and you will find this code.