DEV Community

Eduardo Costa
Eduardo Costa

Posted on

Help with pre-rendering or the sorts?

Hi,

I have a custom-made cgi application I'd like to use react with, and I'm trying to find my way around how to stuff dynamically-generated links in the output, that are needed on a per-requeset, per-session, and per-customer basis.

I started by building a page having only an AppBar with a menu and three items on it, just to see if I could find my way in, but whenever I build it for production, and whenever I use routes or not, these links get moved into some js chunk it wouldn't be feasible to work with.

Ideally, I'd like to output the html with the links already set, and have it pulling js and css chunks from the server as needed.

Have also thought on using `fetch' to pull these from the server, but I'd prefer a more static solution. Is there some known way around this? maybe even pre-rendering even exists and I could output such pre-rendered page stuffing the links where needed?

Any ideas welcome.

Thanks,

Top comments (0)