Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series







yours forever

Become a Pro and unlock everything




per month

useMemo For Expensive Functions


Become a pro to download code and videos



over 1 year ago

@Weronika That's the convention for when creating React components.

User avatar


almost 2 years ago

@Weronika In this case, there is no specific reason for it - it's likely just Scott's own preference. You can name and capitalise JS variables as you wish (you just gotta start them with a letter, not a number or symbol)


almost 2 years ago

I've been wondering - why is Scott starting the names of the variables with a capital letter (UserContext, TitleReversed) ?

Want to join the conversation?

Become a Pro member today!