3 ms·
IMO the killer app today is compiling React server-side, and fast! I'd use that in Go...
by swah 12y ago
IMO the killer app today is compiling React server-side, and fast! I'd use that in Go...
- xanderjanz 12y agoSounds like you're looking for Rendr.
- swah 12y agoNot everyone wants to use Node...
- xanderjanz 12y agoWhy not use a node script for this one part? Seems to me pretty wise to use a javascript runtime when evaluating javascript. You can still use Go or whatever else for all your other tasks.
- swah 12y agoJust simplicity of the deployment. Now I think the right solution is an RPC to a NodeJS server, like you said.
- reverius42 12y agoNo need for Rendr if you're using React -- React is easy to server-side render on its own (assuming you're already using node on the server).
- grosskur 12y agoThere's also otto, a JavaScript interpreter written in Go: https://github.com/robertkrimen/otto https://github.com/robertkrimen/otto Here's an example Go app using otto for React server-side rendering: https://github.com/101loops/go-reactjs https://github.com/101loops/go-reactjs
- swah 12y agoIts great but still too slow for that.