From jQuery To TypeScript - [3/3] - Finishing Up
275 views
Feb 14, 2023
Right now we have some good things, and some bad things. Addressing the bad things should make the good things even better. So let's keep going. The main bad things are: using setInterval inside our render method not using the output of this.determineNextColourCombo() we're not applying the CSS changes anywhere anyway Let's start with the big issue: using setInterval inside our render method. The React docs give us a better approach to this problem. https://codereviewvideos.com/course/from-jquery-to-typescript/video/finishing-up