Member-only story

React Helmet Tutorial for React.js & Next.js

Melih Yumak
3 min readAug 10, 2020

--

React helmet is very powerful library to manage head element of your pages. That is really easy to use and manage document elements. React helmet can be useable for many things most importantly one of the most popular one is SEO for react single page applications.

It is very important for server side rendering applications also. If you want to build multi purpose single page application and change the head elements more often React helmet would be very handy library you would like to use.

There are more information about library from React helmet github page

Basically React helmet takes plain HTML tags and outputs plain HTML tags.

Features of React Helmet

  • Supported head tags: title, base, meta, link, script, noscript, and style.
  • Supports attributes for body, html and title tags.
  • Supports SSR (server-side rendering).
  • Nested components override duplicate head changes.
  • Duplicate head changes are preserved when specified in the same component (support for tags like “apple-touch-icon”).
  • Callback for tracking DOM changes.

Note: If you are planning to use async processes in your application you can have a…

--

--

Melih Yumak
Melih Yumak

Written by Melih Yumak

Top Technology Writer — Lead Full Stack Software Engineer — Youtuber https://www.youtube.com/c/TechnologyandSoftware

No responses yet