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#variableMore +2Buy me a coffeeShareOpenAlso Recommend These to YouAuthorJen-Hsuan Hsieh (Sean Hsieh) | Frontend Engineer (Angular • React) | AWS Solutions Architect AssociateAs a frontend engineer with fullstack and cloud experience, I work with React.js, Angular, Node.js, Django, and AWS services to create scalable and maintainable web applications.