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.
π₯ Use console.dir() to see the properties of an element when console.log() gives you a DOM element
1.1K327183
Quality
Quality
PlayPause
0:00 / 0:00MuteUnmute
1x
Playback rate
Settings
π₯ 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
π₯ @jensimmons just launched a new YouTube channel called Layout Land - first video is on CSS Grid! Make sure you subscribe!
1503411
π₯ Use curly brackets in the command line to cut down on typing the same thing over and over
1.5K415435
π₯ CSS Variables are perfect for overwriting parts of a definition that canβt be broken up like text-shadows, transforms or gradients
2444140
Quality
Quality
PlayPause
0:00 / 0:00MuteUnmute
1x
Playback rate
Settings
π₯ VS Code now has a shrinking tabs option - no more scrolling for your tabs!
"workbench.editor.tabSizing": "shrink"
45896130
π₯ With CSS variables, you can overwrite values when authoring HTML with an inline style attribute