1.2.0 • Published 5 months ago

@next-mini-router/core v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

next-mini-router

Virtual and dynamic routes made simple, like react-router-dom, but with the Next.js way

Installation

npm install @next-mini-router/core

Usage

import { NextMiniRouter, Route } from '@next-mini-router/core'

const Home = () => <h1>Home</h1>
const About = () => <h1>About</h1>
const NotFound = () => <h1>Not Found</h1>

const App = () => (
  <NextMiniRouter defaultState={{...variables }}>
    <Route path="/">
        <Home />
    </Route>
    <Route path="/about">
        <About />
    </Route>
  </Router>
)
1.2.0

5 months ago

1.1.2

5 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.0.1

5 months ago