summaryrefslogtreecommitdiff
path: root/lib/pages/lmao.re
blob: 24c630e09d9204ad7669d7d55448878f0494d188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[@react.component]
let make = () => {
  <html>

      <head>
        <meta charSet="utf-8" />
        <title> {React.string("Bloody Shovel 5")} </title>
      </head>
      <body> <h1> {React.string("Oh hai")} </h1> </body>
    </html>;
    //   let _lol = conn;
    // let make = (~conn) => {
};
// [@react.component]
// let make = (~conn: Query.conn) => {
//   let posts =
//     switch (Query.get_poasts(conn)) {
//     | Ok(posts) => posts
//     | Error(_) => []
//     };

//   <html>
//     <head>
//       <meta charSet="utf-8" />
//       <title> {React.string("Bloody Shovel 5")} </title>
//     </head>
//     <body>
//       <h1> {React.string("Oh hai")} </h1>
//       <ul>
//         {posts
//          |> List.map(post =>
//               <li key={string_of_int(post.Query.id)}>
//                 {React.string(post.title)}
//               </li>
//             )
//          |> React.array}
//       </ul>
//     </body>
//   </html>;
// };