dy / enhook

Enable hooks for a function
MIT License
24 stars 0 forks source link

Make sure there's no mess in multiple runs #5

Open dy opened 4 years ago

dy commented 4 years ago

If we may want to heavily run some function - make sure there's

// this should run fine
let f = hooked(() => useEffect(() => count++)))
for (let i = 1e10; i--;) f()