Questions tagged [server-rendering]

63 questions
1
vote
1 answer

Is server side rendering suitable for mobile apps?

I am considering building my react app with the intent of having both web and mobile built . I came across Next js and is thinking of using it. However, what bothers me is that considering server side rendering is rendered in the server, would that…
Nuru Salihu
  • 4,756
  • 17
  • 65
  • 116
1
vote
1 answer

HttpInterceptingHandler is not a constructor while universal rendering angularjs 6

I'm trying to setup the server side rendering of my angular app, I have followed the instruction from here: https://github.com/angular/angular-cli/wiki/stories-universal-rendering Every command runs successfully, but after starting node server, when…
Rohit Khatri
  • 1,980
  • 3
  • 25
  • 45
1
vote
3 answers

Using Vue to enhance existing Multi page / server rendered / classic web app

I’v been searching for hours now and didn’t find anything close to my use case. I have a classic / multi page / server rendered e-commerce webstie made with JAVA I have a page where the server renders a list of products with a pagination Today, i…
darkylmnx
  • 1,891
  • 4
  • 22
  • 36
1
vote
0 answers

Can I use react-virtualized in server rendering

As title. Since it use so many factors only browsers have, I can't figure out one solution. Can anyone help me?
Zero
  • 131
  • 1
  • 8
1
vote
1 answer

How does state work in React sever side rendering?

I was watching this video and wanted to understand how the state for a component during the first page load is set to the component. Does the component already get built out with the state set on the server side and then get sent down to the client…
stackjlei
  • 9,485
  • 18
  • 65
  • 113
1
vote
0 answers

client- and server-side route are different when using react-router server rendering behind proxy

Here is my problem, I have a front server (apache or nginx) and had some configs like proxy_pass "iamurl/server_render/" to "backend.iamurl.com:3000/". I have a server rendering react-router programme running on the "backend.iamurl.com:3000"…
1
vote
0 answers

React-Router V4 - server rendering works only on one machine

I'm building a MERN project with server-rendering. When someone pull the project (eiter on server or local) he gets this error: TypeError: (0 , _reactRouter.createServerRenderContext) is not a function But on my machine it works properly, witouth…
krmzv
  • 387
  • 3
  • 14
1
vote
0 answers

ASP.NET Core SPA server rendering not working with react+redux+ant-design+babel-plugin-import

I generated a new ASP.NET Core SPA with React+Redux using the aspnetcore-spa generator from Microsoft and tried to use it with ant-design and babel-plugin-import, and the first time the page will be rendered successfully, but once refreshing, it…
1
vote
1 answer

Loading component data asynchronously server side with Mobx

I'm having an issue figuring out how to have a react component have an initial state based on asynchronously fetched data. MyComponent fetches data from an API and sets its internal data property through a Mobx action. Client side, componentDidMount…
Komo
  • 2,043
  • 1
  • 22
  • 35
1
vote
1 answer

got "Element type is invalid: expected a string" when trying to server side rendering react

I get this error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. When trying to use ReactDOMServer.renderToStaticMarkup. This is my react…
someone235
  • 567
  • 2
  • 7
  • 21
0
votes
0 answers

Trying to handle captcha validation from server side using flask

here is my html code CAPTCHA Challenge