fable-routing-app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module App | |
open Fable.React | |
open Fable.Core.JsInterop | |
open ReactRouter.BrowserRouter | |
open ReactRouter.Link | |
open ReactRouter.Switch | |
open ReactRouter.Route | |
let App() = | |
BrowserRouter [] [ | |
div [] [str "Hello from Fable-React Application!"] | |
Link [To (!^ "/about")] [str "About"] | |
Switch [] [ | |
Route [Path "/about"] [str "Content of the About page!"] | |
Route [Path "/"] [str "Content of the Home page!"] | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment