HyperRouter
This Page Under Construction
Usage
class AppRouter
include Hyperstack::Component
include Hyperstack::Router::Helpers
include Hyperstack::Router
render(DIV) do
UL do
LI { Link('/') { 'Home' } }
LI { Link('/about') { 'About' } }
end
Route('/', exact: true, mounts: Home)
Route('/about', mounts: About)
end
end
class Home
include Hyperstack::Component
render(DIV) do
H2 { 'Home' }
end
endDSL
Router
Rendering a Router
Routes
Switch
Links
NavLinks
Pre-rendering
Setup
With Rails
Example
Last updated
Was this helpful?
