File tree Expand file tree Collapse file tree 3 files changed +18
-26
lines changed Expand file tree Collapse file tree 3 files changed +18
-26
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -13,16 +13,14 @@ module AuthorExcerptsLink = {
1313[@ react . component ]
1414let 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};
Original file line number Diff line number Diff 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};
You can’t perform that action at this time.
0 commit comments