• The situation is this, I have a small application that consists of only two pages. I need to make sure that the content on the two pages is different, that is, when the user goes to the second page of my react application. WP understood this and changed the content around my implemented application.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rockiger

    (@rockiger)

    Hello @artur1323,

    I don’t understand what you mean. Can you be more specific? Why did you create a React app if you had a WordPress solution?

    Generally speaking, your React app is a single page, hence the name Single Page Application.

    As I said, I don’t really understand your use case.

    Thread Starter artur1323

    (@artur1323)

    @rockiger Thanks for such a quick response. The situation is this, I have a react application on two pages. I would like to offer users different suggestions when the user goes to the second page.

    That is, the content that is on the page around my application is different, depending on the page. Yes, it looks similar, but below it is different. I wanted to ask how can I do this, despite the fact that I understand that react is a SPA

    • This reply was modified 1 year, 7 months ago by artur1323.
    Plugin Author rockiger

    (@rockiger)

    My best bet would be writing a custom plugin and api endpoint for WordPress. I don’t see a simple solution. Sorry.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I make wp know what page I’m on’ is closed to new replies.