0.1.12 • Published 5 years ago

@koy/router v0.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@koy/router

A router for browser routing.

I just define this library as simple as i can for that you can use some js packages you'd like.

Link

I export a Link module that you can use it as HTML a tags.

for example:

const HomeLink = Link({href: '/home'}, 'Home')

iBack, iForward, iGo, iReplace, iPush

All of them just the simple rewrite for corresponding history's function and wrapped it as IO(can cause onUrlChange in architecture's application).

for example:

const HomeLinkP = Element.of(
  'p', {
    onclick: () => dispatch(ap(iPush, of(IO, '/home')))
  },
  Element.of('span', 'Home')
)
0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.3

5 years ago

0.1.1

5 years ago