Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thoughts on React #182

Open
jaydson opened this issue Jan 9, 2016 · 2 comments
Open

Thoughts on React #182

jaydson opened this issue Jan 9, 2016 · 2 comments
Labels

Comments

@jaydson
Copy link
Contributor

jaydson commented Jan 9, 2016

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

@UltCombo
Copy link
Member

UltCombo commented Jan 9, 2016

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. 😄

@jaydson
Copy link
Contributor Author

jaydson commented Jan 10, 2016

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants