if not game then script = require "test/relative-string" end local root = require(script.Parent.root) local apply = require(script.Parent.apply) local function mount(component: () -> T, target: Instance?): () -> () return root(function() local result = component() if target then apply(target, { result }) end end) end return mount :: ((component: () -> T, target: Instance) -> () -> ()) & ((component: () -> ()) -> () -> ())