πŸ”₯ There are 433 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.

πŸ”₯ Wrap curly brackets around your console.log arguments to see the variable name and value when logged.

This[ab]uses JavaScript’s object shorthand

2.4K1.3K3618

πŸ”₯ Wrap curly brackets around your console.log arguments to see the variable name when logged. This takes advantage of ES6 shorthand syntax

2.4K1.3K3618

πŸ”₯ Four new JavaScript String methods you should know about: .startsWith(), .endsWith(), .includes() and .repeat()

21610890

πŸ”₯ Figure out which part of your JS is applying inline styles / classes with a "break on attribute modifications" breakpoint in dev tools

28913150

πŸ”₯ Handy: use ES6 destructuring to get and rename values on an event or window object

1354140

πŸ”₯ CSS case insensitive attribute selectors are coming! Part of Selectors Level 4.

1314940

πŸ”₯ Another great use case for Flexbox is when you want a label to span "the rest" of the width beside an input without knowing widths

1825530

πŸ”₯ Flexbox tip: In most cases, margin: auto; on flex-items does the same thing as justify-content: center; align-items: center;

463199220

πŸ”₯ JavaScript Completions for Sublime Text has had some major upgrades including inline docs.

20069120

πŸ”₯ Another new DOM Api is .scrollIntoView() to smooth scroll to a place on your page

1506180