0.2.3 • Published 9 months ago

@torthu/jacketui-router v0.2.3

Weekly downloads
-
License
GPL-3.0-only
Repository
-
Last release
9 months 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

9 months ago

0.2.0

9 months ago