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 30 of 46
π₯ Object Spread is coming soon to a JS runtime near you! Handy for creating shallow copies of an object without Object.assign()
π₯ You can destructure anything that returns an array, like when you split a string!
π₯ Use git checkout - to quickly jump back to your last git branch
git checkout -
π₯ Rename and Destructure properties of a return object with ES6 destructuring
π₯ You can disable an entire form or groups of inputs by wrapping in a <fieldset> and applying the disabled attr
π₯ Forms and inputs are available via properies on document.forms. You might not need a selector π
π₯ :nth-last-child() will give you nth-child but start counting from the end.
π₯ is a handy site to quickly view CSS cursor options and copy to clipboard.
π₯ If you are ever working on a site that messes with built-ins, you can get fresh copies by creating an iframe with no src
π₯ Async + Await makes orchestrating timers a snap!
Hacking Cheap Smart Photo Frames into a Family Dashboard