Compare commits
2 commits
466aae951f
...
95eb73a166
Author | SHA1 | Date | |
---|---|---|---|
95eb73a166 | |||
17efce0759 |
11 changed files with 4856 additions and 3117 deletions
1
.node-version
Normal file
1
.node-version
Normal file
|
@ -0,0 +1 @@
|
|||
14.3.0
|
56
.yarn/releases/yarn-berry.js
vendored
Executable file
56
.yarn/releases/yarn-berry.js
vendored
Executable file
File diff suppressed because one or more lines are too long
3
.yarnrc.yml
Normal file
3
.yarnrc.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
yarnPath: ".yarn/releases/yarn-berry.js"
|
||||
pnpMode: loose
|
||||
nodeLinker: node-modules
|
|
@ -21,12 +21,15 @@
|
|||
"react": "^16.8.1",
|
||||
"react-datepicker": "^2.15.0",
|
||||
"react-dom": "^16.8.1",
|
||||
"reason-react": ">=0.7.1",
|
||||
"reason-react": "^0.8.0",
|
||||
"webpack": "^4.43.0",
|
||||
"webpack-cli": "^3.3.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"bs-platform": "^7.3.2",
|
||||
"moduleserve": "^0.9.0"
|
||||
},
|
||||
"resolutions": {
|
||||
"reason-crossword-front": "portal:/Users/anthonys/reason-crossword-front"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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, {
|
||||
|
|
|
@ -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>;
|
||||
};
|
|
@ -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
|
||||
}));
|
||||
|
|
|
@ -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 /> </>;
|
||||
};
|
|
@ -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;
|
||||
|
|
|
@ -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>;
|
Loading…
Add table
Reference in a new issue