by batiste · 7y ago · 0 comments
Then maybe it is an indication is not worth very much. Why not using something like hyperscript instead if it is just some javascript.
> JSX is also super copy-pastable. Less logic and all that.
In my experience the copy-paste-reuse in FE is a red herring. And React is no exception. And a logic less templating is not necessarily helping with a flexible/reusable piece of code.
> JSX being simple also makes the learning curve simple.
Not so sure about that. I think I would have personally preferred not having to learn a new DSL if some basic function call in Javascript can do the same job.
I guess I have been scared by colleagues using ugly ternary operator expressions with React.
I also used so many template languages in the past: PHP, Django, Pug, Rails, etc, etc. That I try to reproduce similar features/mistakes.
No comments yet.