|
|
|
|
|
by batiste
2663 days ago
|
|
> JSX is a simple wrapper around a JS call, it is trivial to mentally convert from JSX to what the real JS is. 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. |
|