|
|
|
|
|
by delhanty
3146 days ago
|
|
Evaluating Vue and React at the moment: From the Vue documentation [1]: >Even if you don’t like the idea of Single-File Components, you can still leverage its hot-reloading and pre-compilation features by separating your JavaScript and CSS into separate files: <!-- my-component.vue -->
<template>
<div>This will be pre-compiled</div>
</template>
<script src="./my-component.js"></script>
<style src="./my-component.css"></style>
If I end up going with Vue, I'd probably do that. It looks like a lot of boilerplate though ...Is there any tool from the Node ecosystem designed to reduce that boilerplate? Thanks for any insights! [1] https://vuejs.org/v2/guide/single-file-components.html#What-... |
|
Newer JavaScript functionality makes that work nicely.
Almost all of my components fit on one screen.