News for hackers. Stuff that matters.

hn-query

Re:Ask HN: Using React with Golang? and does it make sense? on Tuesday February 07, 2017 @11:53AM (#13590615)
Thanks for confirming!
Re:Ask HN: Using React with Golang? and does it make sense? on Monday February 06, 2017 @11:39PM (#13587074)
The data being returned in the response from the Golang API server, would that be the React view components in the form of JavaScript objects?
Re:Ask HN: Using React with Golang? and does it make sense? on Monday February 06, 2017 @07:48PM (#13585910)
Could you explain NodeJS + Golang API (option 1)? How should Golang handle the API if I'm using a NodeJS/Express server as well?

Golang + NodeJS microservice (option 2) is the same as the example I gave right? Where the client only communicates with a Golang server, which forwards the request to NodeJS/React for processing. The processed response is then returned by the Golang server.

Golang + JS interpreter (option 3), again the client exclusively communicates with a Golang server. But Golang types are translated to the equivalent React JS components. Then processed with NodeJS/React and returned as a response by the Golang server. Is that all right?

Ask HN: Using React with Golang? and does it make sense?

Correct me if I'm wrong, but in serving web apps and sites.Golang simply fills in the blanks for predefined templates on the server with the response replacing the content in its entirety on the client.React appears to be a bit more complicated requiring the creation of JavaScript/JSX classes representing the view. Having that rendered on the server and the difference applied on the client.To...

( Read More... | 7 comments | 6 points | on HN )