In a previous blog post, I covered the Javascript functions setInterval and setTimeout. Using setInterval is pretty straightforward and particularly helpful for automating certain functions and features, but what if you need to use in React? Before we being, feel free to brush up on or learn setInterval in my previous post here –> https://alejandrolinan.home.blog/2020/07/10/settimeout-and-setinterval-javascript/Continue reading “set interval, part 2: React.js”
Tag Archives: setInterval
SetTimeout and SetInterval (javascript)
Recently I re-came across these two javascript methods. They’re a real neat piece to use rather than trying to track a current time and updating elements accordingly. Instead, they’re a great, simple way to create continuous updates without a window change or refresh. The Basics setTimeout(f, t) takes two inputs, a function and a timeContinue reading “SetTimeout and SetInterval (javascript)”