JSFiddle - React, Tailwind, and code Playground

JavaScript

$(function() {

    var matches = window.location.hash.match(/\?fb=([0-9]+)/i);
    
    matches = "?fb=4".match(/\?fb=([0-9]+)/i); // Hack in for now!
    
    if (matches) {
        var number = matches[1];
        alert(number); // will alert 4!
    }
    
});