~/talk

Creating interactive frontend apps with GopherJS and React

Talkat Golang UK 2017 · 2017-08-16..08-18· [go, react]
links:none on file
slides:none on file

Claim: write real browser UIs in Go and never hand-edit JavaScript. Uses GopherJS → JavaScript to compile nearly the whole Go language (goroutines, most std lib, source maps), a React wrapper myitcv.io/react + reactgen that auto-generates type-safe props/state glue, and go generate to keep boilerplate down. Demos: markdown preview, to‑do list, an interactive gopher editor and a working browser client calling a Go back end via gRPC‑web — all running live in the page, with reasonable runtime performance.

AI-written summary · about

  1. 0:00Start
  2. 2:22Definitions
  3. 4:52Examples of Interactive Front-End Apps
  4. 6:40To-Do App
  5. 9:26The Document Object Model
  6. 16:29Source Map Support
  7. 18:10What Is React and Why React
  8. 19:22Fundamentals of React and Components
  9. 26:32Go Generate
  10. 26:58Cogeneration
  11. 27:54React Component
  12. 30:47Render Method
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.