Skip to content

Instantly share code, notes, and snippets.

View vzaidman's full-sized avatar

Vitali Zaidman vzaidman

View GitHub Profile
@vzaidman
vzaidman / hook-fix.js
Last active April 5, 2019 10:01
hook-fix.js- Track Redundant Re-renders That Caused By Hooks With "Why Did You Render" version 3
if (hookState.num !== newHookState.num){
setHookState(newHookState)
}