From ce81dfbb0bb28d3a508122671d48c2960cc5eab9 Mon Sep 17 00:00:00 2001 From: Manas Jayanth <3097018+ManasJayanth@users.noreply.github.com> Date: Sun, 28 Jul 2024 15:29:55 +0530 Subject: [PATCH] back link from hello page --- lib/native/AppRouter.re | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/native/AppRouter.re b/lib/native/AppRouter.re index 42f15fa..b0fd6f1 100644 --- a/lib/native/AppRouter.re +++ b/lib/native/AppRouter.re @@ -6,9 +6,20 @@ let homeRoute = Routes.(home() @--> (() => { ; })); + + +module HelloContainer = [%styled.p + {| + color: red; +|} +]; + let helloRoute = Routes.(hello() @--> (() => { print_endline("in hello view"); -

{React.string("In Hello")}

+ <> + {React.string("In Hello")} + {React.string("back home")} + })); let routes = Routes.one_of([homeRoute, helloRoute]);