Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does React use server-side-rendering or client-side-rendering?

Tags:

reactjs

In an article I read that

React uses server-side rendering.

But in another articles I came across this:

Client-Side-Rendering is a relatively new approach to rendering websites, and it didn't really become popular until JavaScript libraries started incorporating it into their style of development. Some notable examples are Vue.js and React.js

Now Which statement is correct?

When I use create-react-app and run npm start, it seems to me that React uses the Client-Side-Rendering. isn't it?

like image 465
user1941537 Avatar asked Dec 23 '22 00:12

user1941537


1 Answers

It’s client side. But React, like some other client side libraries, can be used on the server to prerender it with node, usually for SEO.

like image 66
jorbuedo Avatar answered Jan 19 '23 00:01

jorbuedo