[Video] Why Doesn't React Have Templates?

The one big complaint non-React users have is that it “hurts separation of concerns” by mixing HTML and JavaScript in the same file. So I made a video to try and explain why React made that choice, point out the limitations of templating systems, and explore how you can use React patterns to get some of the same benefits as templates.


Note: I know that React does have a few third-party templating systems, including my own. But as far as I can tell, the concept of separate templates is frowned upon by the React core team.

1 Like

Good stuff @sacha.

It’s funny, Pete Hunt actually cites Seperation of Concerns as the React team’s main reason for putting the styling, logic and presentation in the same file!

1 Like

I think it’s just a matter of what you’re mostly concerned about ; )

1 Like