πŸ”₯ There are 260 Hot Tips!!

Hot tips are spicy lil' nuggets related to web development and tooling that I share on my twitter account. I've logged them here to make them easier to find.

πŸ”₯ Poor (wo)man’s object search - stringify the object and use String.includes to filter the array

16115128

πŸ”₯ The Array .some() Method is super handy for checking if at least one item in an array meets what you are looking for

553126816

πŸ”₯ If you are trying to align oddly sized images, set a hard width + height and then use object-fit: cover; to remove any distortion

img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}
3.2K71349182

πŸ”₯ Quick Video: Heres how JavaScript's Nested Object Destructuring works

1333346

πŸ”₯ .toLocaleString() is a great way to format currency

2.4K6973614

πŸ”₯ Use console.dir() to see the properties of an element when console.log() gives you a DOM element

1.1K327183

πŸ”₯ Quit find-and-replacing in your code! VS Code's Rename Symbol is the best way to mass-rename things things like classes, variables and selectors.

1.3K370373

πŸ”₯ CSS Grid and Flexbox require a direct parent child relationship to work. With React 16.2 we can use <Fragment></Fragment> to return top level siblings from a Component. No more returning wrapper divs!

406106121

πŸ”₯ If you have a noisy console or network tab, you can usually filter those things out

641130

πŸ”₯ 4 Ways to handle the double promise with fetch() and async+await

899250205