Skip to content

Instantly share code, notes, and snippets.

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