JSFiddle - React, Tailwind, and code Playground
by chrisguzman
HTML
<script src="https://cdn.firebase.com/js/client/1.0.17/firebase.js"></script>
JavaScript
var ref = new Firebase('https://helloworldtest.firebaseIO.com/');
ref.on('value', function (snapshot) {
var Variable = snapshot.child("text").val();
return Variable;
});
alert(Variable);