A
A
ASiD2020-10-23 21:36:07
React
ASiD, 2020-10-23 21:36:07

How to set page title in React?

Good afternoon. I am writing a public website in React. Will work with SSR. I am writing a 404 page. I ran into such a problem: so that when clicking on a broken link, search engines understand that the page does not exist, you need to give a 404 header. Is it possible to do this from React?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ranwise, 2020-10-24
@Ranwise

so then 404 gives the server in the request headers

K
Kirill Makarov, 2020-10-24
@kirbi1996

In routes you need to redirect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question