Did you know… there are browser console utilities like $0

This is just a short record of a discovery [late 😬] I made yesterday. There I was, working away on Kent C Dodd’s Epic react fundamentals (highly recommended by the way) when he’s demonstrating something via a console log and enter $0 to get the selected DOM node in his dev tools…

What the actual…

Well tickle me pink, this was news to me. I asked a few colleagues and not one knew about it either. I fired out a tweet about it thanking Kent and announcing my regret for years lost using document.query plus whatever I could to select the element at hand.

Now what I did notice was thrice folded:

  1. Tagging popular people gets you lots of impressions 😀
  2. Plenty of people had NOT seen it either 👀
  3. There were more of them 💥

Thankyou @bcinarli for that forward of you’re tweet. I’ve been playing with these days and they’re so damn useful.

Familiar to me in the sense i know $_ from my Bash scripting and $('selector') is very JQuery indicative. I wonder if there are more out there, hidden away little easter eggs for me to find 😈.

Anyway hope that helps someone else out there.

--

--

--

Fullish-stack engineer (codebykev.dev) and Lead front-end engineer @Cinch with 20 developing stuff for things with screens since the turn of the millenium.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Event Sourcing in React, Redux & Elixir — how we write fast, scalable, real-time apps at Rapport

What Every Good README Should Contain

Volumetric Light Scattering in three.js

//platform.twitter.com/widgets.js

useId() The latest hook in React 18

How to enable and disable Buttons in lightning-datable in Salesforce Lightning Web Component?

Getting Started with Components & Icons in Denali

How to Make SonarCloud Play-Along Nicely with Jest

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin Jones

Kevin Jones

Fullish-stack engineer (codebykev.dev) and Lead front-end engineer @Cinch with 20 developing stuff for things with screens since the turn of the millenium.

More from Medium

Sometimes programmers annoy me

Contributing to Open-Source Projects on GitHub

GitHub logo

Pros and Cons of Chrome Extension for indie developer

Pair Programming