0
What is camel casing in context to css. What it has to do with React.js
React js has it's own virtual dom which uses jsx( which is similar to html). While adding inline css attributes to jsx only camel casing is allowed. What's difference between camel casing and nornal css?
1 Odpowiedź
+ 2
Viraj Singh
Let's say you wanted to change the "font-size" of an Html element
Normal CSS
==========
font-size: 20px;
Camel-case.
==========
fontSize: 20px
CSS makes use of " - ", while camel-case, capitalises the first letters of words, excluding the first.
Example
=======
soloLearn
backgroundColor
firstName
favouriteActionMovie
Easy to understand