React 16 warning “warning.js:36 Warning: Did not expect server HTML to contain a in .”

Just change express response from

<body>
    <div id="root">
        ${markup}
    </div>
</body>

to

<body>
    <div id="root">${markup}</div>
</body>

Remove space between tags

Leave a Comment