I have a basic class:
export default class Foo extends Component{
constructor(props){}
woop(){
somethingimportanthappening..
}
}
in the other component I import it like this:
import Foo from './Foo'
export default class Component2 extends Component{
constructor(props){}
randomfunction(){
Foo.woop() // FAILS
}
}
How can I call the function "woop" from the other component (Component2)? Foo.woop() isn't working ..