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) | Software Engineer | Frontend, Data Visualization | AWS SAABeing familiar with React.js, Angular, AWS services, also server-side languages like NodeJS and ASP.NET MVC