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?

13th Jul 2018, 12:15 PM
Viraj Singh
Viraj Singh - avatar
1 Answer
+ 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
13th Jul 2018, 12:51 PM
Dlite
Dlite - avatar