Skip to content

React Routing: Simplified routing and navigation for React apps, powered by Rollup & TS.

Notifications You must be signed in to change notification settings

AlmazHecker/react-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Routing

React Routing is a library for React that helps with routing and navigation.

Installation

To install React Routing, use npm:

npm install @almazhecker/[email protected]

Usage

To use React Routing in your React application, import the BrowserRouter component and wrap your app with it.

Then, define your routes using the Routes component and specify the path and component for each route.

import { RouterProvider, Routes } from '@almazhecker/react-routing';

const routes = [
  { path: '/', component: <Home /> },
  { path: '/about', component: <About /> },
  { path: '/contact', component: <Contact /> },
];

function App() {
  return (
    <RouterProvider>
      <Routes routes={routes} />
    </RouterProvider>
  );
}

About

React Routing: Simplified routing and navigation for React apps, powered by Rollup & TS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published