react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

Hooks tutorial examples are virtual not really working

Open fatihapaydin opened this issue 7 years ago • 3 comments

Your some hooks example (for instance friendStatus example) virtual and not active working. You should give real and working examples

fatihapaydin avatar Oct 12 '19 07:10 fatihapaydin

Can you link to some of the examples that aren't working?

ianfabs avatar Oct 22 '19 18:10 ianfabs

Ahh I see what you mean, I'll whip up a quick example of a working hook with useEffect and useState.

ianfabs avatar Oct 22 '19 18:10 ianfabs

Here is a very basic example on CodeSandbox

ianfabs avatar Oct 22 '19 18:10 ianfabs