JSFiddle - React, Tailwind, and code Playground

JavaScript

var img = new Image();
img.src ='http://Idonotexist.haha/piclet?s=Hampshire 123&co=USA'
console.log('src', decodeURI(img.src)); // instead of spaces we have %20