2 ms·
Like the other commenter said, people realized that separate languages does not necessarily mean separate concerns. Once you start modifying HTML from JS enoug
by dcre 8y ago
Like the other commenter said, people realized that separate languages does not necessarily mean separate concerns.
Once you start modifying HTML from JS enough, you start to realize the JS counts as view logic just like the template does. So the division of concerns changed from View (HTML template)/Controller (JS) to View (dynamic, written in JS)/Data (also likely JS).
The thing is, people were effectively writing HTML in JS before too, it's just that it looked like `el.style.color = 'red'` instead of `<div style={{color: 'red'}}>`.