I work in film, not software engineering, but I've heard lots of shade thrown on React for a long time, mostly for this reason- messy code.
The question I have is, does React somehow encourage or enable code that is messier than in other frameworks? Why is it so popular if it's so widely hated? There's something I'm missing here.