SpiceQA
Questions Tags Users Badges

Text content does not match server-rendered HTML when using double quotations inside template literal in jsx

user_11033534 0
Created Aug 18, 2022 Edited Aug 18, 2022
Viewed 38

JSX

<div>
  <style>{`
    p::before {
      content: "";
    }
  `}</style>
  <p>Hello World.</p>
</div>

Console

Sandbox

https://codesandbox.io/s/text-content-does-not-match-forked-poqkij?file=/pages/index.js:53-181

next.js reactjs javascript
Share
0 Answers
Related
Terms of service Privacy policy
Powered by Answer