React naming conventions

Leandro A. Siqueira
1 min readAug 19, 2019

--

Stick to the convention of the language and the framework — in React, follows the JavaScript conventions so there is no conflict. Also following the AirBnB guideline for React and ECMAScript.

camelCase for variables and function
PascalCase for types(classes)
UPPERCASE_SNAKE_CASE for constants

--

--

Leandro A. Siqueira
Leandro A. Siqueira

Written by Leandro A. Siqueira

Well, I woke up this morning and I got myself a beer!

No responses yet