Recently used react to create a single page page. Because there is only one main entrance.html that is rendered in the end. Render different components through routing. Is there any way to display the corresponding title through different components. Just use WeChat to open a page and the title part of the header.
It’s actually very simple
To make it simple, just use document.title="xxx" yourself.
To be more standardized, use react-document-title to encapsulate it.
But for WeChat, I don’t know if it can be used on ios.
Use document.title in componentWillMount