-
-
Save anton-gorbikov/ff9502c2d6b78869a85f456565586a62 to your computer and use it in GitHub Desktop.
fable-routing-browser-router
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 ReactRouter.BrowserRouter | |
open Fable.Core | |
open Fable.Core.JsInterop | |
open Fable.React | |
type BrowserRouterProps = | |
| BaseName of string | |
| GetUserConfirmation of (string -> (bool -> unit) -> unit) | |
| ForceRefresh of bool | |
| KeyLength of int | |
let inline BrowserRouter (props: BrowserRouterProps list) (elems: ReactElement list): ReactElement = | |
ofImport "BrowserRouter" "react-router-dom" (keyValueList CaseRules.LowerFirst props) elems |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment