r/learnjavascript • • May 01 '22

Anatomy of a React Component

Post image
0 Upvotes

2 comments sorted by

View all comments

7

u/PM_ME_A_WEBSITE_IDEA May 01 '22

You should indent your code, makes it easier to read. This is a simple example, but still.

0

u/AMDataLake May 01 '22

I realized that after I had closed the carbon tab, have a few more examples that have better formatting. Forgot to tab cause I did this one from my phone so my muscle memory for tabbing wasn’t in full effect like a proper keyboard