|
|
|
|
|
by pier25
2323 days ago
|
|
I hated JSX too when I started doing React 4-5 years ago. Then I used Vue for a couple of years in part because of templates. After that I tried InfernoJS which uses JSX because I needed the performance for a project and now I've turned around on JSX. Personally I couldn't go back to template based frameworks like Vue or Svelte because they usually put you into this one component per file mindset. I much prefer being able to create micro-components in the same file like say buttons or table rows. The thing that annoyed the most with JSX was that writing conditionals and loops inline was ugly or a pita. Then I discovered this Babel plugin and I love it: https://github.com/AlexGilleran/jsx-control-statements |
|