| ▲ | carllerche 2 hours ago | |
The trend has been to move back to this style in general (see most modern JS frameworks). The main point is less about combining code and view, but breaking up the page into many small components and pushing data loading down into where it is needed vs up front. Doing that enables a bunch of performance tricks like starting to steam the page before data i loaded and concurrently render components. If you have to split your page into many small components, a separate view file for each becomes tedious. | ||