JSFiddle - React, Tailwind, and code Playground

by id0

HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/headjs/1.0.3/head.load.js"></script>
<img id="img" src="http://lorempixel.com/200/200/" alt="">
<div class="console"></div>

JavaScript

function aviary(id, src) {
    var $id = id;
    var $src = src;
    
    head.load(
        "http://feather.aviary.com/js/feather.js",
        function() {
            
            var featherEditor = new Aviary.Feather({
                apiKey: 12345,
                apiVersion: 3,
                onLoad: function() {
                     featherEditor.launch({
                        image: $id,
                        url: $src
                    });
                }
                
                // ... ///
            });
        }
    ); 
}

$(document).on('click', 'img', function(){
    var $img = $(this).attr('src');
    aviary('edit-pic', $img);
});