by Akujin · 9y ago · 0 comments
The environment I work on usually has very clean MVC and the issue is always that the designers I work with don't know javascript but need control over the HTML so I'm always taking their raw HTML with almost no javascript and basically reworking the HTML & CSS to do the animations or w/e is necessary.
I've tried React but generally I just get very dirty .JS files with mixed HTML/CSS in them. It's honestly not as clean as people make it out to be unless you're working with UI/UX people who know JavaScript already.
Literally every time I have an HTML/CSS person mess with the code I have to fix the JavaScript afterwards.
Just put the css/sass on .css/.sass files and import the classes from the react jsx file. No need to mix css and html.