1.1.2 • Published 1 year ago

mjd-router v1.1.2

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Router-MJD

Custom react router

mjd-image-route

I advise to create a project with Vite first

then install the mjd-router package

npm install mjd-router

Add this script in the package.json to run the overwrite of the files that change

"scripts": {
  "watch": "node node_modules/mjd-router/lib/router/watcher.js",
  "write": "node node_modules/mjd-router/lib/router/writer.js",
  "mjd": "npm run write && npm run watch",
...
}

finally add in the root of the project (in the case of Vite it is in the main.jsx file), the router component

import { Router } from "mjd-router";
ReactDOM.createRoot(document.getElementById("root")).render(
  <React.StrictMode>
    <Router />
  </React.StrictMode>
);
1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago