Answer the question
In order to leave comments, you need to log in
There is a SPA on React.js and Node.js, how to implement a page change?
There is a SPA on React.js and Node.js, when the button is pressed, a fetch request is sent to the server, a response arrives and you need to do a redirect along with it, but then Cannot GET / is displayed, because the files go through app.use(express.static ...), and the URL on that page is already different, but how can I write it so that a get request for any URL still issues index.html? I'm new to backend so sorry if this is a stupid question.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question