{ All snippets }

Tweetsnippet is a curated list of tips and tricks from Twitter. Currently we have 571 snippets. Help by contributing here!

Steve Schoger

Steve Schoger @steveschoger

🔥 Achieving an accessible contrast ratio is very difficult when using white text on a colored background. Using dark colored text on a soft colored background is much easier to make accessible, and usually looks better to boot 👌 https://t.co/LXNTS01Ay0

🔥 Writing that extra line that just has a return statement to return an object in my Vue component's data() method feels really bad every time. (Not to mention that data() is a method, not just an object 🤔) So I found a way to trim 2 lines using arrow functions 🚨 https://t.co/Qmlil4mqHD

Wes Bos

Wes Bos @wesbos

🔥 If you are trying to debug something in the middle of chaining array methods, just map over it, console.log, and return it. Since console.log returns nothing, it will just pass the entire array through. You can even make a handle little debug function 🐛 https://t.co/HCtLh4QYm6