Be Aware of Stale Closures when Using React Hooks

The stale closures is a pitfall of React hooks when an outdated variable is captured by a closure.