|
|
|
|
|
by drinchev
3952 days ago
|
|
Looks awesome. Kudos. I'm not a React specialist and I have the following question : Is it that common to write the CSS inside the JSX file? Since I started learning React, the hardest part to swallow was that my HTML and JS now live in the same file. Now I see that this library also puts the CSS and since I'm not entirely sure if this is good or not, can someone point some Pro's and Cons and if it's common or not. |
|
Many people's gut reaction is that the folks doing inline styles just don't know CSS well enough and haven't learned the techniques advanced CSS developers use to solve these problems. Regardless of how you feel about inline styles, that gut reaction is wrong – they've been there, done that, and believe this is an even better way.