I want to call a function from an imported class. This is my code
import test from '../test'
test.showMessage(); // This is not working
this is the content of the test component
export default class test {
showMessage(){
alert('Some text');
}
}
I get an error telling me that showMessage is not a function. How can I solve this?