We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jsxRaw
1 parent add4e7a commit 15da715Copy full SHA for 15da715
README.md
@@ -98,6 +98,11 @@ module.exports = {
98
jsxToString(<div>Hello</div>)
99
// "<div>Hello</div>"
100
101
+// raw expression
102
+const t = Date.now()
103
+jsxToString(<div>Now: {jsxRaw(Math.trunc(t / 1000))}</div>)
104
+// `<div>Now: ${Math.trunc(t / 1000)}</div>`
105
+
106
// class list
107
jsxToString(<div className={['bar', 'foo']} />)
108
// `<div class="bar foo"/>`
0 commit comments