Questions tagged [react-server]
36 questions
1
vote
1 answer
Unexpected token syntax error I can not see
Thanks for taking a look. This is the syntax error I am getting:
[0] /Users/alexkarasik/Documents/server/services/passport.js:26
[0] async (accessToken, refreshToken, profile, done) => {
[0] ^
[0] SyntaxError: Unexpected token (
and this is…

kalex
- 15
- 7
1
vote
1 answer
Adding TypeScript definitions for wrapped classes
I'm using a package called react-server that can take any class and will add methods to it at runtime. It expects to have the class that it wraps to have an interface like
interface {
getElements(): Array
}
and it will add…

ashays
- 1,154
- 1
- 12
- 30
1
vote
0 answers
Best way to improve React Server Side Rendering by avoiding NODE_ENV checks
I am using require('babel-register') to allow for ES6 in node.js and doing server-side rendering of my react components.
In this talk (start around 7:14)
https://youtu.be/PnpfGy7q96U?t=7m14s
one main recommendation to speed up React Server Side…

Ish
- 1,855
- 5
- 24
- 32
1
vote
1 answer
ReactJS + ServerSide with ExpressJS - need a way to dictate what to load on the server vs client
So I'm working on POC app, that needs to have SEO optimized content(=== rendered on the server). But within the same route there might be a dynamic data coming from different sources and it might take a while to capture all that data. This dynamic…

eloleon
- 1,144
- 2
- 10
- 18
1
vote
1 answer
Difference between React Server and React Client
I have been researching react.js framework for quite a bit. I am yet to fully understand the difference between client side and server side rendering (despite effort searching for CLEAR difference). Thus, I would highly appreciate for kind souls to…

oatcrunch
- 443
- 9
- 18
0
votes
0 answers
NextJs 13.4.4 fails to load when "server action" and middelware are present
I have a "use client" form with a "server side" action function.
Whe the middlewear is acting upon the route of that form, the app fails to render with this error.
Client side Form. page.jsx
"use client"
import {
Container,
Avatar,
…

Facundo E. Villagra
- 101
- 3
0
votes
1 answer
Why ReactDOMServer.renderToString not returning raw HTML
I write a simple example to test ReactDOMServer.renderToString like this: