// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
var React = require("react");
function Playground$Button(Props) {
var count = Props.count;
var times = count !== 1 ? (
count !== 2 ? String(count) + " times" : "twice"
) : "once";
var msg = "Click me " + times;
return React.createElement("button", undefined, msg);
}
var Button = {
make: Playground$Button
};
exports.Button = Button;
/* react Not a pure module */
ReScript Version
Syntax
Module-System
Enabled Libraries
- @rescript/react
Warning Flags
+a-4-9-20-40-41-42-50-61-102
Compiled successfully