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.
Page 13 of 26
π₯ Sublime HyperClick lets you open ES6 + CommonJS modules right from their import statement
π₯ How to destructure and rename variables in a single shot
π₯ Setting Default Values with JavaScriptβs Destructuring
π
π₯ Wrap curly brackets around your console.log arguments to see the variable name when logged. This takes advantage of ES6 shorthand syntax
π₯ Four new JavaScript String methods you should know about: .startsWith(), .endsWith(), .includes() and .repeat()
π₯ Figure out which part of your JS is applying inline styles / classes with a "break on attribute modifications" breakpoint in dev tools
π₯ Handy: use ES6 destructuring to get and rename values on an event or window object
π₯ CSS case insensitive attribute selectors are coming! Part of Selectors Level 4.
π₯ 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
π₯ Flexbox tip: In most cases, margin: auto; on flex-items does the same thing as justify-content: center; align-items: center;
margin: auto;
justify-content: center; align-items: center;