News for hackers. Stuff that matters.
Re:Ask HN: Using React with Golang? and does it make sense? by anonfunction on Monday February 06, 2017 @10:43PM (#13586812)
You don't need Node.js to be running as a server to use React. Most people would use it to build their react app which would be served as static file(s) and communicate with some backend APIs. The backend API could be written in Golang. It would serve data which React would render in the browser or take requests for actions such as logging in, adding a comment to the database, etc...
Re:Ask HN: Using React with Golang? and does it make sense? by hn-query 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? by ksherlock on Tuesday February 07, 2017 @12:00PM (#13590689)
The back end should return data, in the form of json objects, xml, plain text, animated cat gifs, etc.