benawad

react-hooks-examples

Trying out React Hooks

by benawad

JavaScript

JavaScript76.6%
HTML18%
CSS5.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

1 of 6 standards met

Community profile →
28
✓README○License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 discussion · Last activity 7y ago
See all on GitHub →
micros123

Great video and clean approach. However, it seems that in the React 16.8 this way of using async is not allowed. The console throws this error: Warning: An Effect function must not return anything besides a function, which is used for clean-up. It looks like you wrote useEffect(async () => ...) or returned a Promise. Any chance you can refactor to comply?

micros123 · 7y ago
KaiSchniggendiller

Hey i`ve used ur customHook idea of an input. Now I'm in trouble, because the setValue() is not executed. Any idea? The initial value works fine :/ with kind regards, kai

KaiSchniggendiller · 7y ago
mohaalak
useCallbackMergedPR

for optimization, you can use useCallback and React.memo also when you want todos in useCallback you can get this way

mohaalak · 7y ago
AsaAyers

I enjoyed your video and wanted to try finding other solutions. I figured a PR is the best way to show what I came up with. I suspect some people won't like the idea of mutating state like this. So I have another version that uses WeakMap() but operates on the same principal.

AsaAyers · 7y ago
Structured data for AI agents

Repository: benawad/react-hooks-examples. Description: Trying out React Hooks Stars: 85, Forks: 50. Primary language: JavaScript. Languages: JavaScript (76.6%), HTML (18%), CSS (5.4%). Homepage: https://www.youtube.com/playlist?list=PLN3n1USn4xllL1OrVr-A4oq7SG-cS9MOQ Open PRs: 0, open issues: 1. Last activity: 7y ago. Community health: 28%. Top contributors: benawad.