5 ms·
Why is there HTML inside the JavaScript? Doesn't that defy the entire point of the MVC pattern?
by wackget 4y ago
Why is there HTML inside the JavaScript? Doesn't that defy the entire point of the MVC pattern?
- pjmlp 4y agoReact people think it doesn't, and apparently that is what everyone should be using...
- dymk 4y agoThat’s a misunderstanding of MVC - it’s a design pattern that’s language agnostic, not a declaration that HTML needs to live separately from JavaScript. The view logic in JS lives separately from the model logic in JS lives separately from controller etc.