Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 653 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 653 Bytes

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)