MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/9yfluq/the_state_of_javascript_2018/ea1t9kd/?context=3
r/programming • u/[deleted] • Nov 19 '18
177 comments sorted by
View all comments
Show parent comments
24
It's like when people see JSX and think it mixes presentation and logic.
10 u/i_ate_god Nov 19 '18 It mixes two syntax's that should not be mixed.It's quite awful to look at it realy 21 u/jl2352 Nov 19 '18 Yet it's much easier to maintain JSX components because of this. They are much easier to drop in and out. 2 u/i_ate_god Nov 19 '18 I fail to see what JSX does to make component writing easier or harder, but I definitely see how it makes it... stranger. 5 u/wchill Nov 19 '18 Yep, Vue's single file components are the right way to do it imo 5 u/kukiric Nov 19 '18 Unless you want type safety, then we're back to square one. 0 u/wchill Nov 19 '18 I'm using Vue SFCs with TypeScript right now in a project I'm working on though? With vue-class-component TypeScript has been catching type errors I make → More replies (0)
10
It mixes two syntax's that should not be mixed.
It's quite awful to look at it realy
21 u/jl2352 Nov 19 '18 Yet it's much easier to maintain JSX components because of this. They are much easier to drop in and out. 2 u/i_ate_god Nov 19 '18 I fail to see what JSX does to make component writing easier or harder, but I definitely see how it makes it... stranger. 5 u/wchill Nov 19 '18 Yep, Vue's single file components are the right way to do it imo 5 u/kukiric Nov 19 '18 Unless you want type safety, then we're back to square one. 0 u/wchill Nov 19 '18 I'm using Vue SFCs with TypeScript right now in a project I'm working on though? With vue-class-component TypeScript has been catching type errors I make → More replies (0)
21
Yet it's much easier to maintain JSX components because of this. They are much easier to drop in and out.
2 u/i_ate_god Nov 19 '18 I fail to see what JSX does to make component writing easier or harder, but I definitely see how it makes it... stranger. 5 u/wchill Nov 19 '18 Yep, Vue's single file components are the right way to do it imo 5 u/kukiric Nov 19 '18 Unless you want type safety, then we're back to square one. 0 u/wchill Nov 19 '18 I'm using Vue SFCs with TypeScript right now in a project I'm working on though? With vue-class-component TypeScript has been catching type errors I make → More replies (0)
2
I fail to see what JSX does to make component writing easier or harder, but I definitely see how it makes it... stranger.
5 u/wchill Nov 19 '18 Yep, Vue's single file components are the right way to do it imo 5 u/kukiric Nov 19 '18 Unless you want type safety, then we're back to square one. 0 u/wchill Nov 19 '18 I'm using Vue SFCs with TypeScript right now in a project I'm working on though? With vue-class-component TypeScript has been catching type errors I make → More replies (0)
5
Yep, Vue's single file components are the right way to do it imo
5 u/kukiric Nov 19 '18 Unless you want type safety, then we're back to square one. 0 u/wchill Nov 19 '18 I'm using Vue SFCs with TypeScript right now in a project I'm working on though? With vue-class-component TypeScript has been catching type errors I make → More replies (0)
Unless you want type safety, then we're back to square one.
0 u/wchill Nov 19 '18 I'm using Vue SFCs with TypeScript right now in a project I'm working on though? With vue-class-component TypeScript has been catching type errors I make → More replies (0)
0
I'm using Vue SFCs with TypeScript right now in a project I'm working on though? With vue-class-component TypeScript has been catching type errors I make
→ More replies (0)
24
u/spacejack2114 Nov 19 '18
It's like when people see JSX and think it mixes presentation and logic.