gox

module
v0.0.0-...-76d4100 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2021 License: MIT

README

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)

Directories

Path Synopsis
cmd
pkg
css
dom
gox

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL