404 Custom Page
To Create a Custom 404 (Not Found) page with the Gothic Framework is very straight forward. Create the custom page and add this route in the end of your main.go server:
Important note : A route config is not required for components and pages, but all page and component functions MUST receive props, even if they are of type any and receive nil as value.
// Not found page
router.Get("/*", func(w http.ResponseWriter, r *http.Request) {
pages.NotFound(nil).Render(r.Context(), w)
})Did you like the Next.js-like features? Learn about GothicTinyGo (WASM) — Gothic's built-in WASM runtime for writing browser-side Go code!
