```md
import { Canvas, Meta, Story } from '@storybook/addon-docs';
import { YourComponent } from './your-component.component';
export const someFunction = (valuePropertyA, valuePropertyB) => {
// Makes some computations and returns something
};
export const Template = (args) => {
const { propertyA, propertyB } = args;
// 👇 Assigns the function result to a variable
const someFunctionResult = someFunction(propertyA, propertyB);
return {
props: {
...args,
someProperty: someFunctionResult,
},
};
};