Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 342 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 342 Bytes

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