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

Rendering with other React/Next/Vue or any other frontend page #45

Open
mitesh-200228 opened this issue Nov 7, 2023 · 1 comment
Open

Comments

@mitesh-200228
Copy link

mitesh-200228 commented Nov 7, 2023

I want to do the conditional rendering of the main dashboard with different Frontend frameworks like React.

E.x.

let x = 1;
{x ? <>Hello world</> : <>{R2Explorers dashboard}</> } something like this. is there any way i can do this?

@G4brym
Copy link
Owner

G4brym commented Nov 15, 2023

Hey there, i think the best approach here is to build a proxy worker, that handles the logic if it needs to proxy requests to your react app or to r2-explorer instance
Otherwise, if you use vuejs you should be able to easly add your views/pages into the main dashboard code here

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

2 participants