import * as React from "react" ; import RoutingService from "../service/RoutingService" ; import Link from "./Link" ; class LinkFactory { constructor ( private readonly routingService ) { } public create ( children , className , path ) { return < Link className = { className } path = { path } routingService = { this . routingService } > { children } < /Link>; } } export default LinkFactory ;