React Server Side Components

From bibbleWiki
Revision as of 03:02, 23 September 2023 by Iwiseman (talk | contribs) (Created page with "=Introduction= React by default downloads your bundles and generates HTML on the client. This approach change the process to generate HTML on the Server and send it to the client. This should. * Improve SEO as the HTML can now by read on the server by the robots * Improve the user experience as the HTML is rendered quicker * Maybe improve performance * Make the build a bit more complex =First example= This was taken from https://www.youtube.com/watch?v=F-v1IXvFd_4 here...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

React by default downloads your bundles and generates HTML on the client. This approach change the process to generate HTML on the Server and send it to the client. This should.

  • Improve SEO as the HTML can now by read on the server by the robots
  • Improve the user experience as the HTML is rendered quicker
  • Maybe improve performance
  • Make the build a bit more complex

First example

This was taken from [here] <Syntaxhighlight lang="bash"> npm i express npm i @babel/preset-env @babel/preset-react @babel/register npm i ignore-styles