Facebook's React is one of the most dominant libraries for front-end development around. Google's Go programming language is one of the most elegantly crafted languages for server development. Why not combine the two?
This package is an extremely thin wrapper over the native react.js API. The objective was to make it light-weight, developer-friendly and intuitive. You shouldn’t have to scour the documentation to get going — a few peeks should be adequate. If you know your way around the React API and you know a bit of Go, then you should be able to make prototypes and production-worthy applications in no time.
This package is best suited for making cross-platform Desktop applications using these technologies:
The package is production ready. An optional (but highly convenient) elements
sub-package is also included.
See Tutorial here.
⭐ the project to show your appreciation.
PureComponent
)go get -u github.com/rocketlaunchr/react
The examples can be found here:
-m
command line flag to instruct gopher.js to minify code. Then bundle+minify further with rollup.js xor Webpack/UglifyJS. A Webpack tutorial can be found here.fmt
at all costs (including indirectly). Use fmtless instead.net/http
for http requests (including indirectly). Use gopherjs-xhr instead.context
package because it uses fmt
. Instead use context
from forks
sub-package.honnef.co/go/js/dom
if possible.elements
sub-package.#
The license is a modified MIT license. Refer to LICENSE
file for more details.
© 2018-20 PJ Engineering and Business Solutions Pty. Ltd.
Feel free to enhance features by issuing pull-requests.