0.2.3 • Published 1 year ago

@torthu/jacketui-router v0.2.3

Weekly downloads
-
License
GPL-3.0-only
Repository
-
Last release
1 year ago

JacketUI Router

Router based on thinking from compassionate components.

Philosophy

We want flexibility in our components and escape hatches in order to solve edge cases and make components truly expandable and reusable.

In order to achieve this we need to create flexible components, meaning expandable and full of escape hatches in order to cater for edge cases.

Route paths

  • Static (/foo, /foo/bar)
  • Parameter (/:title, /books/:title, /books/:genre/:title)
  • Parameter w/ Suffix (/movies/:title.mp4, /movies/:title.(mp4|mov))
  • Optional Parameters (/:title?, /books/:title?, /books/:genre/:title?)
  • Wildcards (*, /books/*, /books/:genre/*)
  • Optional Wildcard (/books/*?)

Example

<Router>
    <Route path="/" as={Component} />
</Router>
0.2.3

1 year ago

0.2.0

1 year ago