Skip to content

Commit 0a4f91d

Browse files
committed
remove unneeded fragments
1 parent e563fec commit 0a4f91d

File tree

3 files changed

+18
-26
lines changed

3 files changed

+18
-26
lines changed

client/src/App.re

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ module Handlers = {
3434
authorName,
3535
)}
3636
decoder=PageExcerpts_bs.read_payload>
37-
{(
38-
excerpts => {
39-
<PageExcerpts excerpts />;
40-
}
41-
)}
37+
{(excerpts => <PageExcerpts excerpts />)}
4238
</Client.FetchRender>
4339
};
4440

shared/PageAuthorExcerpts.re

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ module AuthorExcerptsLink = {
1313
[@react.component]
1414
let make = (~authors) => {
1515
<PageContainer>
16-
<>
17-
<h1> {React.string("Authors with excerpts")} </h1>
18-
<Dom.Ul cls="list-disc list-inside">
19-
{List.mapi(
20-
(_i, author) =>
21-
<li key={string_of_int(_i)}> <AuthorExcerptsLink author /> </li>,
22-
authors,
23-
)
24-
|> React.list}
25-
</Dom.Ul>
26-
</>
16+
<h1> {React.string("Authors with excerpts")} </h1>
17+
<Dom.Ul cls="list-disc list-inside">
18+
{List.mapi(
19+
(_i, author) =>
20+
<li key={string_of_int(_i)}> <AuthorExcerptsLink author /> </li>,
21+
authors,
22+
)
23+
|> React.list}
24+
</Dom.Ul>
2725
</PageContainer>;
2826
};

shared/PageCounter.re

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ let make = () => {
1313
);
1414

1515
<PageContainer>
16-
<>
17-
<h1 key="header"> {React.string("Counter")} </h1>
18-
<p key="desc">
19-
{React.string(
20-
"The HTML (including counter value) comes first from the OCaml native server"
21-
++ " then is updated by React after hydration",
22-
)}
23-
</p>
24-
<p key="counter"> {React.string(string_of_int(count))} </p>
25-
</>
16+
<h1 key="header"> {React.string("Counter")} </h1>
17+
<p key="desc">
18+
{React.string(
19+
"The HTML (including counter value) comes first from the OCaml native server"
20+
++ " then is updated by React after hydration",
21+
)}
22+
</p>
23+
<p key="counter"> {React.string(string_of_int(count))} </p>
2624
</PageContainer>;
2725
};

0 commit comments

Comments
 (0)