add WASM blazor-like thing
This commit is contained in:
7
go/vdom/mode_native.go
Normal file
7
go/vdom/mode_native.go
Normal file
@@ -0,0 +1,7 @@
|
||||
//go:build !(js && wasm)
|
||||
|
||||
package vdom
|
||||
|
||||
// IsClient is false on the server (native). Components use it to guard
|
||||
// client-only effects (e.g. fetching) so they don't run during SSR.
|
||||
const IsClient = false
|
||||
Reference in New Issue
Block a user