Twitter | Search | |
Kitze finally shipped 🚢️
This is seriously my favorite JS tip. Don't convert an arrow function just to add a console.log, you can add it with || and then get rid of it later 😍
Reply Retweet Like More
Kitze finally shipped 🚢️ Aug 14
Replying to @thekitze
This fucking language
Reply Retweet Like
Sascha Becker Aug 14
Replying to @thekitze
Wait what
Reply Retweet Like
Kitze finally shipped 🚢️ Aug 14
Replying to @SaschaBecker42
Reply Retweet Like
Obed M' Parlapiano. Aug 14
Replying to @thekitze
The real question is, where are those flex coming from. I wanna see them. So many ideas in one gif
Reply Retweet Like
Kitze finally shipped 🚢️ Aug 14
Replying to @ObedParla
I wrote them like 3 years ago. that's why I don't know the original flex syntax
Reply Retweet Like
Kent C. Dodds Aug 14
Replying to @tkh44 @thekitze
Yup! It's much better to use multiple args than to spread objects because it'll deep merge (think pseudo selectors etc.)
Reply Retweet Like
Kitze finally shipped 🚢️ Aug 14
Replying to @kentcdodds @tkh44
It looks cleaner this way tho, otherwise prettier will format it weirdly if you have only 1 or 2 arguments
Reply Retweet Like