0

When I see the source code of my web page, made in reactjs the content in #app I can not see it, how can I make it to see the content

1
  • but the questions is How can I program for that code to be generated when I see the source code, why do I think that for seo it is wrong Commented Jan 21, 2017 at 3:49

1 Answer 1

1

You will have to make use of server-side rendering. What you see in the source code is what is being sent to the browser from the server. In typical React applications, the content is only created via JavaScript after the page loads. Only a bare <body> with some <div> is being sent to the browser.

This repository should show you how it can be achieved: https://github.com/mhart/react-server-example

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.