wix-incubator / react-templates

Light weight templates for react
https://wix.github.io/react-templates
MIT License
2.82k stars 207 forks source link

Discontinued? #244

Open p3pp8 opened 5 years ago

p3pp8 commented 5 years ago

Simple question: Is react-templates discontinued? Another simple question: In case of positive answers to the above, is out there any alternative?

Cheers!

nippur72 commented 5 years ago

There are no alternatives that I know of, indeed I ended up writing a templating engine of my own.

Things have changed a lot since the introduction of react-templates; generally speaking the interest in HTML templates has dropped considerably. Today the choice is JSX, no doubt. The syntax might be a little uglier than plain templates, but there are lot of benefits.

p3pp8 commented 5 years ago

I can't ask the UI guys to use JSX to create layouts, i see at this point it would be better to go with angularJS and its templating engine as i know it well... Generally is not a good thing to put everything in one single file and mix html with js code, it can be useful for newbies or unskilled programmers perhaps, but not if you want to give a good structure to your project. Really disappointing. Thanx for the answer!

nippur72 commented 5 years ago

I love html templates but the most annoying part is switching back and forth from code to template, really.

The second most annoying thing is that you don't have syntax checking or even syntax highlight (nowadays you can't live without).

Anyway you should not dismiss react-templates too quickly. Even if it's not very active, it proved to work over the years, it's solid. I used it a lot before I started to change it adding the features I needed, eventually rewriting it from scratch.

p3pp8 commented 5 years ago

@nippur72 Ok i'll test it more accurately, we'll see. Thanx!!!

p3pp8 commented 5 years ago

Anyway, i think this project should be still developed, it's something that is really useful to developers, to divide code from what will be rendered and organize the project using a MVC like paradigm.

Cheers