Techiio-author
Started by Natasha JonesSep 22, 2021

Open
Staticly render react components in existing HTML files

1 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 1 VIEWES SHARE

I created a React component library with buttons, form elements, ...

I have already a website with multiple existing HTML files. Now I want to add these react components to these existing html files. And I want to render them on build time. So they are prerendered. As they are not dynamicly I do not need hydration. I just need to prerender them in those existing html files.

Does someone now how to do this?

1 Replies

Techiio-commentatorTanmay Banerjee replied 7 days ago0 likes0 dislikes

What i have understood about pre-rendering is when we are hosting with a static hosting provider we use react-snapshot to generate html pages for each route or relative link, in your application.

The primary benefit of pre-rendering is that you get the core content of each page with the HTML payload, It also increases the likelihood that each route of your application will be picked up by search engines.

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance