Awesome Open Source
Awesome Open Source

React.js server and client side rendering with Go

This experiment is based on selfjs and w8worker, a Javascript interpreter for Go. The goal for the experiment was to explore if reactjs server side rendering could be done with Go and to use the same code in the browser.

As a http server echo is used.

In rss.go we are fetching a rss feed (scheduled in main.go). Scheduling also renders the results and saves them in a global variable to be used later.

You can test it here: isomorphic2.uutispuro.fi

To run:

go build && ./go-isomorphic-react-v8

To benchmark serverside rendering:

go test -bench=.

The result on my MacBook Air (1.4 GHz i5):

PASS
BenchmarkRender1               1        277493982 ns/op
ok      github.com/jelinden/go-isomorphic-react-v8 2.747s
Alternatives To Go Isomorphic React V8
Select To Compare


Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,071,815
Reactjs (164,190
Go (160,431
Server (66,126
Rendering (8,350