R2-Explorer icon indicating copy to clipboard operation
R2-Explorer copied to clipboard

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

Open mitesh-200228 opened this issue 1 year ago • 1 comments

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?

mitesh-200228 avatar Nov 07 '23 19:11 mitesh-200228

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

G4brym avatar Nov 15 '23 19:11 G4brym