title: How to detect a variable change in React js/Solidity?
body: <p>I have a number variable in my react project that changes every couple of minutes.</p>
  <p>I would like to make a popup on the screen that displays whether or not the number increased or decreased.</p>
  <p>I'm having trouble figuring out a way to make a function that is always running and can detect when that number variable changes.</p>