title: react where to put the firebase change listener in a component
body: <p>I am new to firebase and am trying to link in a firebase-database. If I put the following in a render function:</p>
  
  <pre><code>let temperature = itemsRef.child('current_temperature');
  temperature.on("value", function (snapshot) {
            myData = snapshot.val();
            console.log('temp', myData);
  });
  </code></pre>
  
  <p>the log messages display in the console, but I can't see how to display this in the template. Is there a simple example component of how to get the updated values from this watcher to display in the html? </p>