4 ms·
React classes don’t get destroyed and recreated each render. You can throw a console.log in the constructor, or save variables locally to the class, and see thi
by SirHound 7y ago
React classes don’t get destroyed and recreated each render. You can throw a console.log in the constructor, or save variables locally to the class, and see this for yourself.