re: Dragula: A free stock images tool on steroids 🦇 VIEW POST


I really like the idea!

I couldn’t resist not to take a look at the source code and I’ve noticed you’ve used multiple times


I’d like to share a trick that hopefully you’ll find useful. Instead of writing that multiple times, you could simply do

const $ = document.querySelector.bind(document);

// Usage
const elem = $(selector);

Neat. Will be added soon. The refactoring of the project is pending that's why the code may not look nice now. But we will work on it. 😊

code of conduct - report abuse