fre icon indicating copy to clipboard operation
fre copied to clipboard

fre router

Open AlidotSal opened this issue 4 years ago • 2 comments

I was wondering if there is a router for fre or it works with other (react) routers?

AlidotSal avatar Aug 08 '21 09:08 AlidotSal

https://github.com/molefrog/wouter/blob/master/use-location.js

Here is a use-location hook that can be used.

yisar avatar Aug 08 '21 09:08 yisar

im using this for the mean time https://socket.dev/npm/package/frontend-router-js import router from "frontend-router-js";

  useEffect(() => {
    const routes = document.getElementById("routes");
    router.get("/", (req, res) => {
		render(<h1>HOME PAGE</h1>, routes);
    });
    router.get("/contact", (req, res) => {
        render(<h1>CONTACT US</h1>, routes);
    });
	return () => {
	}
  }, []) 

rjjrbatarao avatar Aug 03 '23 15:08 rjjrbatarao