summaryrefslogtreecommitdiff
path: root/lib/pages/lmao.re
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-06-27 16:34:09 +0700
committerpolwex <polwex@sortug.com>2025-06-27 16:34:09 +0700
commit645e815ebe11dbb86781c3eb645d3d67cd62cf7c (patch)
tree347b03391a5245de8a43198c9646719c2e892373 /lib/pages/lmao.re
parent8be9a806a93b02eada372f3993c34bc6b2f26fea (diff)
nice nice. lsp still doesnt work tho
Diffstat (limited to 'lib/pages/lmao.re')
-rw-r--r--lib/pages/lmao.re40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/pages/lmao.re b/lib/pages/lmao.re
new file mode 100644
index 0000000..24c630e
--- /dev/null
+++ b/lib/pages/lmao.re
@@ -0,0 +1,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>;
+// };