I have a number variable in my react project that changes every couple of minutes.
I would like to make a popup on the screen that displays whether or not the number increased or decreased.
I'm having trouble figuring out a way to make a function that is always running and can detect when that number variable changes.