Fork of the react-helmet with ability to inject custom seo string

Usage no npm install needed!

<script type="module">
  import reactHelmetWithVisor from '';


React Helmet With Visor

Fork of the famous react-helmet v5 library with the goal to inject SEO-like scripts at runtime. For main documentation, please refer to original repository ( One of the possible issues it can solve: . The plans are marge it back to react-helmet repository as soon as possible, if they would like to accept our PR. Unfortanat

Unfortunately, for technical reasons, HelmetsOpenedVisor doesn't support toComponent functionality and no full support for PhantomJS browser.


import React from "react";
import {Helmet} from "react-helmet";

class Application extends React.Component {
  render () {
    return (
        <div className="application">
                <meta charSet="utf-8" />
                <title>My Title</title>
                <link rel="canonical" href="" />
                        !function (f, b, e, v, n, t, s) {
                            if (f.fbq) return; n = f.fbq = function () {
                                n.callMethod ?
                                    n.callMethod.apply(n, arguments) : n.queue.push(arguments)
                            if (!f._fbq) f._fbq = n; n.push = n; n.loaded = !0; n.version = \'2.0\';
                            n.queue = []; t = b.createElement(e); t.async = !0;
                            t.src = v; s = b.getElementsByTagName(e)[0];
                            s.parentNode.insertBefore(t, s)
                        }(window, document, \'script\',
                        fbq(\'init\', \'*************\');
                        fbq(\'track\', \'PageView\');
                            &lt;img height="1" width="1" style="display:none"

As string output

const html = `
    <!doctype html>
    <html ${helmet.htmlAttributes.toString()}>
        <body ${helmet.bodyAttributes.toString()}>
            <div id="content">
                // React stuff here