Live data from Hacker News

Vue 3.0 Updates [slides]

docs.google.com

11–20 of 126 posts

Re: Vue 3.0 Updates [slides]

#11

Earlier quoted context omitted.

Similarly, I'm a Vue fan, and them having to keep up with and learn from React's moves keeps it solid. I am very happy with recent updates to Vue and their framework is a pleasure to develop with (the tradeoff being a certain level of power that React provides that Vue cannot obtain, but it's plenty).

What power does React offer you that Vue can't? It'd be quite interesting to hear your take on it.

Exporting reactive JS native apps for iOS and Android is the most significant feature -- was what I would have said.

I looked it up before writing this comment, and apparently Vue introduced this in June 2018. Case in point of this comment thread :)

Re: Vue 3.0 Updates [slides]

#12
post #4

I think the best part about Vuejs is that how simple it is and everything just works! A vue component is still as simple as {template: 'hi'}. You don't need webpack or any transliteration for it to work. Just drop the script tag like the good old jQuery and it's working! No wonder it was so easy to switch to it. Transition from vue1 to vue2 was really simple. I'm sure the same will be true for v3.

Maybe it's the constant React vs Vue articles that make me suspicious, but if you are referring to React when mentioning webpack / transliteration, i'd like to mention that you don't need them for React neither. It can be resumed to a simple script tag as well. I hate this misconception and wish it would just go away.

Could you paste the simple script tag that makes React work without transpilation? I always thought you needed Webpack (or an equivalent) to transpile JSX into a vanilla js function the browser can interpret.

If you're referring to Create React App, it uses Webpack - just preconfigured so you don't have to fiddle with it before you start building.

Re: Vue 3.0 Updates [slides]

#13

Earlier quoted context omitted.

Maybe it's the constant React vs Vue articles that make me suspicious, but if you are referring to React when mentioning webpack / transliteration, i'd like to mention that you don't need them for React neither. It can be resumed to a simple script tag as well. I hate this misconception and wish it would just go away.

Could you paste the simple script tag that makes React work without transpilation? I always thought you needed Webpack (or an equivalent) to transpile JSX into a vanilla js function the browser can interpret. If you're referring to Create React App, it uses Webpack - just preconfigured so you don't have to fiddle with it before you start building.

Something like this? https://gist.github.com/gaearon/6668a1f6986742109c00a581ce70...

Re: Vue 3.0 Updates [slides]

#14
post #2

I'm very happy to see React and Vue influence each other. They definitely are the highest quality frameworks out there and having two different research teams only improves the overall quality of the ecosystem. I'm a React fan, yet I really applaud all the nice stuff which is coming in Vue 3. Well done.

>research teams

Lol. Writing JS libs is not research.

Re: Vue 3.0 Updates [slides]

#15

Earlier quoted context omitted.

Could you paste the simple script tag that makes React work without transpilation? I always thought you needed Webpack (or an equivalent) to transpile JSX into a vanilla js function the browser can interpret. If you're referring to Create React App, it uses Webpack - just preconfigured so you don't have to fiddle with it before you start building.

Something like this? https://gist.github.com/gaearon/6668a1f6986742109c00a581ce70...

That’s without JSX. Transpilation is required in order to make use of JSX.

Re: Vue 3.0 Updates [slides]

#16
My feeling is that most people who use Vue or React only need a template engine. Typical use case: You have an array of objects and a template how each object should look like.

So you do...

    
     
      {{ user.name }}
     
    

    
     let userList = new Vue({
      el  : '#users',
      data: { users: users }
     })
    
...to make Vue render the list of objects.

This is the only thing I ever use these frameworks for. Everything else I think I can implement in a better, leaner way myself. So I wonder if I should switch to a template engine instead.

What is the next most basic/common usecase for Vue?

Re: Vue 3.0 Updates [slides]

#17

Earlier quoted context omitted.

Maybe it's the constant React vs Vue articles that make me suspicious, but if you are referring to React when mentioning webpack / transliteration, i'd like to mention that you don't need them for React neither. It can be resumed to a simple script tag as well. I hate this misconception and wish it would just go away.

Could you paste the simple script tag that makes React work without transpilation? I always thought you needed Webpack (or an equivalent) to transpile JSX into a vanilla js function the browser can interpret. If you're referring to Create React App, it uses Webpack - just preconfigured so you don't have to fiddle with it before you start building.

No, I meant simply adding a tag and using react directly, in any context. That's how it was originally designed, btw. It wasn't meant only for SPAs when it was conceived, but as an addon to existing websites.

The other comment gives a perfect example and there are a few tutorials (although I do agree not very mainstream) that teach React without JSX/Webpack/Babel/etc.

edit: You are correct that you need transpilation for JSX but you don't need JSX for React. The confusion of JSX/React sounds eerily similar to how newbies confused jQuery for JS.

Re: Vue 3.0 Updates [slides]

#18
post #15

Earlier quoted context omitted.

Something like this? https://gist.github.com/gaearon/6668a1f6986742109c00a581ce70...

That’s without JSX. Transpilation is required in order to make use of JSX.

So what? You can use React without JSX.

Re: Vue 3.0 Updates [slides]

#19
post #15

Earlier quoted context omitted.

That’s without JSX. Transpilation is required in order to make use of JSX.

So what? You can use React without JSX.

Using the createElement structure is more annoying than just doing a es6 template string in Vue.

Re: Vue 3.0 Updates [slides]

#20
post #2

I'm very happy to see React and Vue influence each other. They definitely are the highest quality frameworks out there and having two different research teams only improves the overall quality of the ecosystem. I'm a React fan, yet I really applaud all the nice stuff which is coming in Vue 3. Well done.

>research teams Lol. Writing JS libs is not research.

React is pretty advanced under the hood. Just because it's Javascript doesn't mean you can't write advanced tech in it.
Post reply on HN