Skip to content

Commit

Permalink
back link from hello page
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed Jul 28, 2024
1 parent be1ef5c commit ce81dfb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/native/AppRouter.re
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,20 @@ let homeRoute = Routes.(home() @--> (() => {
<App />;
}));



module HelloContainer = [%styled.p
{|
color: red;
|}
];

let helloRoute = Routes.(hello() @--> (() => {
print_endline("in hello view");
<p> {React.string("In Hello")} </p>
<>
<HelloContainer> {React.string("In Hello")} </HelloContainer>
<Link href="/">{React.string("back home")}</Link>
</>
}));

let routes = Routes.one_of([homeRoute, helloRoute]);

0 comments on commit ce81dfb

Please sign in to comment.