Ask Your Question
3

What is the problem that arises when importing dynamic components in React with SSR?

asked 2021-09-06 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-09-12 18:00:00 +0000

ladyg gravatar image

The problem that arises when importing dynamic components in React with SSR is that the server needs to know which components are going to be rendered before sending the initial HTML markup to the client. If the server doesn't know which components will be required, it cannot pre-render them, which can lead to slower application performance and a poor user experience. Additionally, if the code for these components is not loaded on the server, it may not be included in the initial HTML, causing issues when the component is eventually rendered on the client.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-09-06 11:00:00 +0000

Seen: 10 times

Last updated: Sep 12 '21