January 2019
Intermediate to advanced
460 pages
10h 33m
English
When developing a web application, it is crucial that you can control your document heads. You might want to change the title or description, based on the content you are presenting.
React Helmet is a great package that offers this on the fly, including overriding multiple headers and server-side rendering.
Install it with the following command:
npm install --save react-helmet
You can add all standard HTML headers with React Helmet.
I recommend keeping standard head tags inside your template. They have the advantage that, before React has rendered, there is always the default document head. For our case, you can directly apply a title and description in App.js.
Import react-helmet at the top of ...
Read now
Unlock full access