March 2019
Beginner to intermediate
324 pages
7h 17m
English
Now it's time to start writing our React application in Go. We will make use of a popular package known as myitcv.io/react. This package offers some GopherJS bindings for the React framework. The package documentation can be found at https://github.com/myitcv/x/tree/master/react.
The first thing we need to do is retrieve the myitcv.io/react package, in order to use it in our code:
go get -u myitcv.io/react
Retrieve a tool called reactGen, this tool facilitates building React applications in Go. It can be used to auto-build skeleton applications that act as building blocks for more complex applications:
go get -u myitcv.io/react myitcv.io/react/cmd/reactGen
Open a Terminal window, then navigate to the ...
Read now
Unlock full access