Looks like client side scriplets - html(structure) mixed up with code(behavior). Can lead to spaghetti code just like it did in the old days (pre JSP) on server side java.
The criticism isn't really accurate for react though. React only mixes markup and code in the sense that markup is produced through function calls rather than as the result of processing arbitrary strings.