@weedzcokie/router-tsx
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

router-tsx

npm

Example

Paths are handled by router.

import { RouterComponent as Router } from "@weedzcokie/router-tsx";
import Home from "./Home";
import About from "./About";
import Todo from "./Todo";
<Router>
    <Home path="/" />
    <About path="/about" />
    <Todo path="/todos" />
    <Todo path="/todos/:todo" /> {/* props = { todo: 1, url: "/todos/1" } */}
</Router>

Package Sidebar

Install

npm i @weedzcokie/router-tsx

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

8.74 kB

Total Files

8

Last publish

Collaborators

  • weedzcokie