|
|
|
|
|
by bobthepanda
1182 days ago
|
|
In practice, I find keeping your CSS separate from the JSX tends to be cleanest (your solution 1). Separation of concerns with what are essentially totally different markup languages is best when you can. We tolerate it with JSX because there isn't a fantastic first-class declarative way to express an object, a list of objects, or filtering in HTML. (I have seen WebComponents and the MDN tutorial seemed like taking a step back.) |
|