JSFiddle - React, Tailwind, and code Playground

by Chase Wilson

JavaScript

function Thumb (url) {
    for(var key in regexps) {
        if(url.test(regexps[key]) {
            new window[key + 'Thumb'](url)
        }
    }
}
 

function FacebookThumb (url) {

}    

regexps = {
    'Facebook': /facebook.com/
}