I'm brand new to React and Typescript, and I have a very basic question. In the viewer documentation, extensions are defined as classes. Is it possible to transform that class into a typescript function? Does that even make sense? For example, take this simple class extension:
export function myExtension() {
console.log('MyExtension has been loaded');
return true;
}
How would this look as a function instead of a class? Thanks in advance!