No imageSean HS · 2/20/2020Use Closure to store variables to avoid re-render in ReactJS0 Reading0 ShareWhen do we have to store variables to the closure instead of the state?Keywords#react#use#reactjs#store#avoidMore +2Buy me a coffeeShareOpenAlso Recommend These to YouAuthorJen-Hsuan Hsieh (Sean Hsieh) | Software Engineer | Frontend & Visualization | AWS (SAA, DVA)Software engineer focused on building scalable, data-driven systems with a strong emphasis on frontend architecture and visualization. Experienced with modern web technologies and AWS, with an interest in system design and performance.