Open jaydson opened 8 years ago
I'm not quite sure how React would help us. Are you proposing to replace Nunjucks with React?
(BUZZ WORD ALERT) isomorphic
I prefer the "universal" buzzword hahah. :smile:
replace Nunjucks with React?
Nope. They should work together.
I'm not sure either how React can truly help us, but I'm pretty sure we can benefit from everything React brings as benefits both for the server and for the client. What comes to my mind first is the use of shared components and the possibility to render statically (render components as HTML integrated with the templates and partials) or dynamically (via JavaScript API in the browser).
I was playing with React recently and wondering about implement it in my personal Blog. Then I realized it may be interesting to support it and build the generated Harmonic interface with React. The currently code generated by Harmonic is kind of (BUZZ WORD ALERT) isomorphic. Basically, all data we have access in the back-end we also have in the front-end. Sure, it is not well documented and poorly implemented, but I'm using it today on my Blog, and it works.
I've created a simple example using React on the server side and it feels simple (and powerful) enough to implement. https://github.com/jaydson/react-static
What do you guys think? //cc @jcemer @UltCombo @felipenmoura