3 ms·
Just the visual appearance. It’s so chaotic. I’m sure it’s very powerful, and that’s why people like it. I just don’t have a very high tolerance for clutter.
by throwaway1851 4y ago
Just the visual appearance. It’s so chaotic. I’m sure it’s very powerful, and that’s why people like it. I just don’t have a very high tolerance for clutter.
- frosted-flakes 4y agoIt looks almost exactly like HTML though? The only difference is wrapping curly brackets around expressions. I admit that if you embed long expressions directly in the JSX it can chaotic, but I tend to assign these expressions to variables first, then put the variable in the JSX. Or break it up into another component.
- throwaway1851 4y agoI don’t think it does when the markup you’re generating gets more complex. At least, not compared to Vue templates. What I like about Vue is that you can work up a static design, then cut and paste chunks into single file components, add in a few :attr=“someVar” bindings, some handlebars, and you’re done with the template part. You can also copy and paste and rearrange the markup very easily. It’s a nice workflow and it makes it easy to see and manipulate the structure of the markup without having to think about the JS too much. I imagine if you enjoy writing JS, then it makes sense to make everything a function and do it all in JS.
- localvoid 4y ago> I’m sure it’s very powerful JSX is only appealing to a webdev community. Modern native react-like UI libraries are perfectly fine without XML-like syntaxes: Flutter[1], Jetpack Compose[2], SwiftUI[3]. 1. https://flutter.dev/ https://flutter.dev/ 2. https://developer.android.com/jetpack/compose https://developer.android.com/jetpack/compose 3. https://developer.apple.com/xcode/swiftui/ https://developer.apple.com/xcode/swiftui/