return function(I,p)local function l(l,t,o)local b=p.createLegacyRoot(l)b:render(I.createElement(t,o))return function()b:unmount()l.Parent=nil end end return l end
return function(Roact, ReactRoblox)
	local function bootstrap(rootInstance, component, props)
		local root = ReactRoblox.createLegacyRoot(rootInstance)
		root:render(Roact.createElement(component, props))

		return function()
			root:unmount()
			rootInstance.Parent = nil
		end
	end

	return bootstrap
end
