go-courier / gox

Home Page:https://go-courier.github.io/gox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoX

[Experimental] React-like library for Golang in WASM

Features

  • Virtual DOM and HTML DSL with function calls.
  • CSS in Go like Emotion JS did.
  • Fragment && Portal supports.
  • Component support as interface { Render(ctx context.Context, childen ...interface{}) interface{}}.
  • Basic hooks support UseState, UseEffect, UseMemo, UseRef
    • UseContext not needed in Go, the context.Context will pass into Component
  • Request HTTP in web worker by XHR

Known Issues

  • Compiled to wasm
    • bundle size is so big, but could be compressed by gzip/brotli (brotli is better)

About

https://go-courier.github.io/gox

License:MIT License


Languages

Language:Go 97.9%Language:JavaScript 0.8%Language:TypeScript 0.7%Language:Makefile 0.4%Language:HTML 0.2%