Skip to content
loading...

RFC: Call React component state variables "statelings"

github logo ・1 min read  

I've been a professional web developer for just over 10 years now. I'm currently the lead web development instructor at Better Coding Academy, and as part of what I do, I post videos on our YouTube channel at https://www.youtube.com/c/BetterCodingAcademy.

(Subscribe for awesome web development content!)

I was talking with one of my students, and he asked me this question regarding React:

Hmm...
What do you call the things that exist inside state={}
Statelings?

It totally caught me off guard.

For those of you who don't know, the "proper" name is state variables, but personally I'm ever so slightly biased towards statelings.

What do you guys think? 😁

twitter logo DISCUSS (2)
markdown guide
 

I've been calling them as:

For class components (CC), "state properties", for function components(FC), "states" as you can have one state variables in CC while multiple (via hooks) in CC.

I will refer'em both as state variables from now on :)

 

CompletelyuUnrelated but when ever i hear the word -ling I always thing of Ling Yao.

I've always just referred to those vars as state variables. Tho stateling would definitely turn some confused heads.

Classic DEV Post from Jun 25 '19

What does your Junior interview process involve?

Explain what your junior interview process involves and what you look for in junior candidates.

Lucas Chen profile image
I turn people into web developers @Better Coding Academy. Our graduates get salaries ranging from $80k-$120k AUD. You can find me on Stack Overflow and YouTube. Let me know if you're keen to talk.