This commit is contained in:
Anthony Cicchetti 2020-05-22 12:48:09 -04:00
parent 466aae951f
commit 17efce0759
9 changed files with 65 additions and 7 deletions

1
.node-version Normal file
View file

@ -0,0 +1 @@
14.3.0

56
.yarn/releases/yarn-berry.js vendored Executable file

File diff suppressed because one or more lines are too long

1
.yarnrc.yml Normal file
View file

@ -0,0 +1 @@
yarnPath: ".yarn/releases/yarn-berry.js"

View file

@ -7,7 +7,7 @@ var DatePicker$ReasonReactExamples = require("../DatePicker/DatePicker.bs.js");
function Container(Props) {
return React.createElement("div", {
className: "flex one"
}, React.createElement(DatePicker$ReasonReactExamples.make, { }), React.createElement("ul", undefined, React.createElement(UserEntry$ReasonReactExamples.make, {
}, React.createElement(DatePicker$ReasonReactExamples.make, { }), React.createElement("ol", undefined, React.createElement(UserEntry$ReasonReactExamples.make, {
name: "Anthony",
score: "1:00"
}), React.createElement(UserEntry$ReasonReactExamples.make, {

View file

@ -2,9 +2,9 @@
let make = () => {
<div className="flex one">
<DatePicker />
<ul>
<ol>
<UserEntry name="Anthony" score="1:00" />
<UserEntry name="Mae" score="0:15" />
</ul>
</ol>
</div>;
};

View file

@ -5,7 +5,7 @@ var Moment = require("moment");
function DatePicker(Props) {
var date = Moment().format("YYYY-MM-DD");
return React.createElement("div", undefined, React.createElement("input", {
return React.createElement(React.Fragment, undefined, React.createElement("input", {
type: "date",
value: date
}));

View file

@ -1,5 +1,5 @@
[@react.component]
let make = () => {
let date = MomentRe.momentNow() |> MomentRe.Moment.format("YYYY-MM-DD");
<div> <input type_="date" value=date /> </div>;
<> <input type_="date" value=date /> </>;
};

View file

@ -7,7 +7,7 @@ function UserEntry(Props) {
var score = Props.score;
return React.createElement("article", {
className: "stack pseudo button"
}, React.createElement("div", undefined, name + (" - " + score)));
}, name + (" - " + score));
}
var make = UserEntry;

View file

@ -1,5 +1,5 @@
[@react.component]
let make = (~name: string, ~score: string) =>
<article className="stack pseudo button">
<div> {React.string(name ++ " - " ++ score)} </div>
{React.string(name ++ " - " ++ score)}
</article>;