News for hackers. Stuff that matters.
Re:How to start a React Project in 2023 by bobthepanda on Thursday March 23, 2023 @09:18PM (#35283854)
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.)

There are no comments on this comment yet.