1
1
mirror of https://github.com/c8r/x0.git synced 2024-09-19 09:38:31 +03:00

Specify utf-8 encoding

Without declaring utf-8, bundles using
utf-8 characters are unable to be parsed.
This commit is contained in:
John Otander 2017-11-28 09:01:15 -07:00
parent 80accfc84d
commit 42450b6a24

View File

@ -20,6 +20,7 @@ const createHTML = ({
initialProps,
scripts = []
}) => (`<!DOCTYPE html>
<head><meta charset='utf-8'></head>
<div id='__APP__'>
${body}
</div>