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.
1 parent 3bb4de0 commit 3fa8a44Copy full SHA for 3fa8a44
src/layouts/LandingPageLayout.res
@@ -37,8 +37,9 @@ module PlaygroundHero = {
37
| 2 => "twice"
38
| n => n->Int.toString ++ " times"
39
}
40
+ let text = \`Click me $\{times\}\`
41
- <button> {\`Click me $\{times\}\`->React.string} </button>
42
+ <button> {text->React.string} </button>
43
44
}`,
45
js: `import * as JsxRuntime from "react/jsx-runtime";
@@ -48,8 +49,9 @@ function Playground$Button(props) {
48
49
var times = count !== 1 ? (
50
count !== 2 ? count.toString() + " times" : "twice"
51
) : "once";
52
+ var text = "Click me " + times;
53
return JsxRuntime.jsx("button", {
- children: "Click me " + times
54
+ children: text
55
});
56
57
0 commit comments