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 Intl.RelativeTimeFormat() to get nicely formatted relative time strings.
2.4K57921288
π₯ Object.fromEntries() is a new method for converting Arrays, maps or other iterables into objects
1K2431681
π₯ Use CSS Variables to do partial property overwrites. Handy for CSS properties that only accept multiple values.
544111839
π₯ If you have a pesky 301 redirect that won't clear, open dev tools and load the page with the "disable cache"
Log this in your head for later, you'll need it like I just did π
16326315
π₯ Close multiple tabs in Firefox and Chrome by holding down Shift to select them, and then β+W to close
507921817
π₯ Where is this repo on github? Find the corresponding git{hub,lab} repo to a folder with git remote -v
561152
π₯
5077
106440
π₯Just learned about Intl.ListFormat from @mathias.
8131861244
π₯ If you are in a react component where you destructure a prop and find yourself needing to see what other props are available, use an ...Object Rest to collect the rest of the props in a single object
2834435
π₯ JavaScript functions visualized! This is a screenshot from my Beginner JavaScript course.