Skip to content

Instantly share code, notes, and snippets.

@anton-gorbikov
Created February 1, 2020 18:02
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/54a5bb3fd3ac296792655bb34da9026f to your computer and use it in GitHub Desktop.
Save anton-gorbikov/54a5bb3fd3ac296792655bb34da9026f to your computer and use it in GitHub Desktop.
fable-routing-route
module ReactRouter.Route
open Fable.Core
open Fable.Core.JsInterop
open Fable.React
type RouteProps =
| Path of string
let inline Route (props: RouteProps list) (elems: ReactElement list): ReactElement =
ofImport "Route" "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