https://github.com/go-courier/gox
https://github.com/go-courier/gox
go react-like-library virtual-dom-library
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/go-courier/gox
- Owner: go-courier
- License: mit
- Created: 2021-10-12T09:59:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T05:59:12.000Z (over 3 years ago)
- Last Synced: 2025-01-23T21:49:15.707Z (over 1 year ago)
- Topics: go, react-like-library, virtual-dom-library
- Language: Go
- Homepage: https://go-courier.github.io/gox
- Size: 2.64 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://github.com/emotion-js/emotion) 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)