GitShow/benawad/react-hooks-examples
benawad

react-hooks-examples

Trying out React Hooks

by benawad
Star on GitHubForkWebsitenpm

JavaScript

85 stars51 forks1 contributorQuiet · 7y agoSince 2018

Meet the team

See all 1 on GitHub →
benawad
benawad4 contributions

Languages

View on GitHub →
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
Async not allowed inside useEffect()OpenIssue

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

Recent fixes

View closed PRs →
KaiSchniggendiller
setValue is not executed ?!ClosedIssue

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
Use setState to store a permanent wrapperFunctionMergedPR

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: 51. 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.

·@ofershap

Replace github.com with gitshow.dev