There are css components and libraries out there that render <style>s inside head. Making these libraries inter-operate with helmet make for some non-optimal server-only logic.
Would it make sense to add support to <style> in Helmet? I'm guessing it would behave the same way <script> is behaving, except without the src attribute.
Thanks for the suggestion. Got a PR up now - #140
@cwelch5 awesome! Thanks for this.
Nice!
Docs in readme are inaccurate though...
<Helmet
style={{
"cssText": `
body {
background-color: green;
}
`
}}
/>
... throws an error. Should be...
<Helmet
style={[{
"cssText": `
body {
background-color: green;
}
`
}]}
/>
@KCraw Thanks! Fixed.
This has been released in [email protected]
Most helpful comment
Nice!
Docs in readme are inaccurate though...
... throws an error. Should be...