Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fre router #288

Open
AlidotSal opened this issue Aug 8, 2021 · 2 comments
Open

fre router #288

AlidotSal opened this issue Aug 8, 2021 · 2 comments

Comments

@AlidotSal
Copy link

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

@yisar
Copy link
Collaborator

yisar commented Aug 8, 2021

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

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

@rjjrbatarao
Copy link

rjjrbatarao commented Aug 3, 2023

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 () => {
	}
  }, []) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants