@carlilelance
Yes, this is quite easily done now in components. I am not familiar with the link you shared specifically, but what area are you having problems with?
In general, to make a component a function component, you need to provide an Output property with a parameter. In that property you would perform your function.
Ex. If you add an Output property to your component and call it Calc (numeric) and then have that property require a parameter (let's call it Base (numeric required)). Then in the Calc property of the control you can do something like - Base + 100
With the component in your app, you can reference the function with yourComponent.Calc(200) this would return 300.