Skip to content

Instantly share code, notes, and snippets.

Created Feb 1, 2020
What would you like to do?
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