TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Vue.js 3

768 点作者 simulo超过 4 年前

30 条评论

RNCTX超过 4 年前
Vue is the only one of the most popular 3 frameworks that can easily be used on a minimal basis to sort of &quot;spruce up&quot; old applications by selectively adding it here and there in the templates.<p>Seems like they should try more marketing and community outreach toward that end.<p>Gradual adoption is a feature &#x2F; selling point not many web development frameworks can claim.
评论 #24521307 未加载
评论 #24523004 未加载
评论 #24520302 未加载
评论 #24521636 未加载
评论 #24521773 未加载
评论 #24526330 未加载
评论 #24520247 未加载
评论 #24527820 未加载
评论 #24521955 未加载
评论 #24526415 未加载
评论 #24523094 未加载
评论 #24523590 未加载
lykahb超过 4 年前
I am impressed how they redesigned both internal architecture and a public API while keeping the users happy. Many well written projects fall into the trap of being a great fit for the contemporary practices but become less relevant over time as the ecosystem changes. Well done, Vue!
评论 #24519058 未加载
didip超过 4 年前
I am impressed with the amount of energy Evan is pouring in this open source project.<p>I am curious if he ever experience boredom working on Vue.<p>I am also curious if Patreon based income is sustainable for the long run. What if there&#x27;s another new sexy JS framework in the future?
评论 #24519401 未加载
评论 #24520735 未加载
评论 #24520970 未加载
评论 #24519892 未加载
评论 #24523250 未加载
评论 #24522569 未加载
fyrmio超过 4 年前
&gt; Vue 3 has demonstrated significant performance improvements over Vue 2 in terms of bundle size (up to 41% lighter with tree-shaking), initial render (up to 55% faster), updates (up to 133% faster), and memory usage (up to 120% less).<p>What does 120% less memory usage mean, really?
评论 #24518817 未加载
评论 #24518941 未加载
评论 #24522634 未加载
评论 #24518830 未加载
评论 #24518986 未加载
评论 #24518780 未加载
评论 #24518823 未加载
评论 #24519073 未加载
评论 #24518802 未加载
filipsch超过 4 年前
I was surprised to see an update to a contemporary JavaScript framework to be welcomed rather than boo’d by the average HN reader. That in itself is an accomplishment.
评论 #24521648 未加载
hugi超过 4 年前
Live release announcement with Evan You going on right now:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Vp5ANvd88x0" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Vp5ANvd88x0</a>
评论 #24518804 未加载
评论 #24519030 未加载
umvi超过 4 年前
So it looks like Vue releases are all named after anime?<p>For anyone curious, here&#x27;s the full list:<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Vue.js#Versions" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Vue.js#Versions</a>
评论 #24521841 未加载
gavinray超过 4 年前
My only wish now is for the TSX experience to be rounded out.<p>From a reactivity standpoint, Vue has a much more ergonomic&#x2F;easy to use API for handling component state, effects, and computed values (in my opinion) than React.<p>But in the last 6-8 months, I&#x27;ve leaned away from Single-File Components because when you want to do something like define a bunch of small components, it&#x27;s a lot more difficult to do than with multiple TSX functions you can chuck in one file.<p>So I&#x27;ve been using Vue with TSX, and the experience (in the last few months only, before that was pretty bad) is <i>okay</i>, but not as solid as you&#x27;d get with React.<p>I&#x27;m not the only one who must feel this way, because this exists and has a lot of stars:<p><i>&quot;Reactivue: Use Vue Composition API in React components&quot;</i><p><a href="https:&#x2F;&#x2F;github.com&#x2F;antfu&#x2F;reactivue" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;antfu&#x2F;reactivue</a><p>Unfortunately, this is a weird stance to take in the Vue community, almost nobody uses JSX&#x2F;TSX. Because of this, the development efforts towards it aren&#x27;t as much a priority.<p>Overall, I&#x27;d rate the experience as &quot;decent&quot; and &quot;totally usable&quot;, but I hope to see the DX for Vue&#x27;s TSX community improve over the coming months.<p>---<p>Edit 2: Disregard the below, this already exists apparently<p>Edit 1: Having to write two type definitions for Component Props: one TS interface&#x2F;type, and one as the JS object sucks. That&#x27;s my one big complaint.<p>I know it&#x27;s impossible because props need a runtime value but someone should make a plugin&#x2F;babel transform to decorate the &quot;props&quot; key from the generic argument here:<p><pre><code> const MyComponent = defineComponent&lt;MyComponentProps&gt; </code></pre> Use reflection on &quot;MyComponentProps&quot; to set &quot;props&quot; key.<p>There&#x27;s another comment below discussing this drawback too.
评论 #24519283 未加载
评论 #24519297 未加载
评论 #24519188 未加载
quaffapint超过 4 年前
Anyone know if Vue 3 is isolated? Like can you use it to make 3rd party widgets and not worry about version conflict like you would with Vue 2?
superasn超过 4 年前
One thing I&#x27;m really excited about with this version is Vite (the snowpack type version of Vue that doesn&#x27;t require webpack). It should make development so much easier.
评论 #24526151 未加载
IshKebab超过 4 年前
I was hoping for better Typescript support for typing properties, since that is where 90% of our type errors occur. But it seems like you still have to specify the types manually. The example from the manual:<p><pre><code> const Component = defineComponent({ props: { name: String, success: { type: String }, callback: { type: Function as PropType&lt;() =&gt; void&gt; }, message: { type: Object as PropType&lt;ComplexMessage&gt;, required: true, validator(message: ComplexMessage) { return !!message.title } } } }) </code></pre> Contrast this with React where this would be something like this (I think; I&#x27;ve never used React):<p><pre><code> interface Props { name: string; success: string; callback: () =&gt; void; message: ComplexMessage; } export default class Component extends React.Component&lt;Props&gt; { ... </code></pre> Quite disappointing. Maybe not that surprising given Evan said he only started using Typescript very recently, and many beginner Javascript developers don&#x27;t realise that they should really be using Typescript (fortunately Evan isn&#x27;t one of them). I would recommend still avoiding Vue for this reason alone.
评论 #24519248 未加载
评论 #24519298 未加载
nikkwong超过 4 年前
The announcement talk was nice to watch, however, it was technically void of any of the implementation details.<p>It&#x27;s interesting to me that they did not consider the approach of pushing more work to the compiler and less to the runtime in the manner popularized by Svelte. I wonder what the trade-off between their current rendering approach and the Svelte-based approach are?
评论 #24525544 未加载
bewareandaware超过 4 年前
I don&#x27;t really understand the composition API. Doesn&#x27;t passing values by reference which can be modified anywhere downward the tree make your app difficult to reason and debug it?
评论 #24518947 未加载
评论 #24519230 未加载
评论 #24520922 未加载
评论 #24519007 未加载
评论 #24519320 未加载
Exuma超过 4 年前
I just started vue 3 and its incredible compared to my experience with react. Way to go Vue team!!!
评论 #24519570 未加载
winrid超过 4 年前
Ha, I literally just built my first Vue 2.0 project yesterday. I&#x27;m already behind! :)<p>(just a Chrome extension) <a href="https:&#x2F;&#x2F;github.com&#x2F;FastComments&#x2F;fastcomments-debug&#x2F;blob&#x2F;master&#x2F;chrome&#x2F;src&#x2F;popup&#x2F;App.vue" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;FastComments&#x2F;fastcomments-debug&#x2F;blob&#x2F;mast...</a>
TekMol超过 4 年前
I still don&#x27;t see a reason why one would use Vue or React.<p>I agree that templating of data is something you should use a library for. But there are great templating libraries. Handlebars for example.<p>Can someone give a short example of code that would be more elegant using Vue then just a simple template engine?
评论 #24519563 未加载
评论 #24520498 未加载
评论 #24519253 未加载
评论 #24519278 未加载
评论 #24519328 未加载
评论 #24519330 未加载
评论 #24519335 未加载
评论 #24528156 未加载
评论 #24519284 未加载
评论 #24520472 未加载
ausjke超过 4 年前
Good to see this out. I want to pick a good frontend scheme for future projects but I don&#x27;t really need most of the fancy SPAs and the complexity coming with it.<p>Invested a few weeks on Vue a few months back, then the concern about &#x27;React has 80% market share and you can find React developer much more easily in the west&quot; never went away.<p>Maybe Mithril is the way out? I just need a really light-weight client-side-ajax MVC for some embedded product webUI, in fact jquery+BT might do the job well but again, jQuery is not modern any more.<p>Not a frontend guy, picking a direction there has always been challenging.
评论 #24519324 未加载
评论 #24519208 未加载
评论 #24519164 未加载
TravelPiglet超过 4 年前
Can I use it by including it with a script-tag?<p>Vue 2 was kind of possible to get up and running with a script-tag to get components in a pre-existing app.
评论 #24519501 未加载
therealmarv超过 4 年前
anybody know the status of Nuxt and vue 3 support?
评论 #24519217 未加载
评论 #24520052 未加载
jiofih超过 4 年前
&gt; allows end users to shave off up to half of the runtime size via tree-shaking<p>Doesn’t webpack support <i>actual</i> tree-shaking (not just modules) or is that still a Rollup-only feature? There should be little difference in size in importing packages vs files if tree-shaking is on.
评论 #24519546 未加载
评论 #24520010 未加载
zwieback超过 4 年前
good timing. I&#x27;m about to start learning vue.js so I&#x27;ll start with this. We&#x27;ll see how long it takes to &quot;unlearn&quot; 40 years of traditional programming and jump into the world of web apps.
revskill超过 4 年前
I don&#x27;t know if React could allow set children&#x27;s data via parent, like<p>$childRef.setData({ data })<p>When i see this code in a Vue codebase, my mind got hurt.<p>I still prefer React due to its consistent reasoning about data flow in the app.
评论 #24525771 未加载
mariushn超过 4 年前
Why is IE11 support still important now? I can&#x27;t find exact stats on it, but it seems &lt;2%. Surely projects which still want to support IE11 could still stick for a while with Vue2.
评论 #24520807 未加载
评论 #24522177 未加载
brylie超过 4 年前
I&#x27;ve been confused by some of Evan&#x27;s presentations about performance gains and other statistics. For example, the release notes say<p>&gt; updates (up to 133% faster)<p>How can something be &gt; 100% faster?
评论 #24522535 未加载
评论 #24522464 未加载
badhabit超过 4 年前
i learned vue2 3-4 years ago.<p>should i learn vue3 or svelte instead?
评论 #24521328 未加载
评论 #24519633 未加载
评论 #24521527 未加载
评论 #24522229 未加载
评论 #24521283 未加载
评论 #24519643 未加载
评论 #24519446 未加载
jaequery超过 4 年前
is reactive() just a mere wrapper around ref() ?
评论 #24519204 未加载
评论 #24524375 未加载
jaequery超过 4 年前
if this means no more Vuex, i&#x27;m all for that. that extra abstraction layer never proved useful to me.
评论 #24519707 未加载
评论 #24519153 未加载
NanoWar超过 4 年前
Nice, but does it have material?
评论 #24520594 未加载
tor291674超过 4 年前
No Nuxt 3 yet.
awinter-py超过 4 年前
hooray &lt;Suspense&gt;