A Golang-based virtual dom.
Live demo https://goat-two.vercel.app/
- Clone the repository
git clone https://github.com/hdck007/goat.git
- navigate inside the repository
cd site
- build wasm
GOOS=js GOARCH=wasm go build -o main.wasm -buildvcs=false
. Yes, it's a big command feel free to use npm scripts, or as in my case I have created an alias - Serve the HTML using some HTTP server (I use the vscode live server extension currently)
Note: I will soon develop a dev server for this
https://github.com/aidenybai/million
Currently working on it.....
- Figuring out how to bind event listeners using Golang
- Prop serialization logic, (this would help me convert
style: map[string]string|number
to inline styles for dom elements) - JSX parser
- A development server
- Some benchmarking --> At least starting with some basics
These todos are the first things that came to my mind at the moment of writing them and the list doesn't indicate the order or priority in which it will be implemented