JSFiddle - React, Tailwind, and code Playground
by dkunin
JavaScript
// this object gets filled with params
var params = {};
// split and map parameters
location.search.substr(1).split('&').map(function(p) {
p = p.split('=');
params[p[0]] = p[1] || 1;
});