Skip to content

Instantly share code, notes, and snippets.

@anton-gorbikov
Created February 1, 2020 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anton-gorbikov/415d702631089f161f1942799a4db5e7 to your computer and use it in GitHub Desktop.
Save anton-gorbikov/415d702631089f161f1942799a4db5e7 to your computer and use it in GitHub Desktop.
fable-routing-switch
module ReactRouter.Switch
open Fable.Core
open Fable.Core.JsInterop
open Fable.React
let inline Switch (props: unit list) (elems: ReactElement list): ReactElement =
ofImport "Switch" "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