Skip to content

nmhieu1896/scope-to-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Journey from javascript scope to React hook

How scope in js (may) works!

closure.js

How garbage collector and scope chain create closure. It's use cases and memory leaks.

index.js

simple useState(actually context) and some useful use cases (debounce, singleton,...)

use-state.js

better version of useState with state Queue

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published