router

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	reactea.BasicComponent
	reactea.BasicPropfulComponent[Props]
	// contains filtered or unexported fields
}

func New

func New() *Component

func (*Component) AfterUpdate

func (c *Component) AfterUpdate() tea.Cmd

func (*Component) Init

func (c *Component) Init(props Props) tea.Cmd

func (*Component) Render

func (c *Component) Render(width, height int) string

func (*Component) Update

func (c *Component) Update(msg tea.Msg) tea.Cmd

type Params added in v0.4.0

type Params = map[string]string

type Props

type Props map[string]RouteInitializer

type RouteInitializer

type RouteInitializer func(Params) (reactea.SomeComponent, tea.Cmd)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL