var Foo = require('Foo');
Foo.prototye.componentDidMount = () => {};
I import Foo, but for the case that I use it, I want to override the componentDidMount function on it's prototype. I know this is a hack : (
If I do this, I worry that in other cases where Foo is used, it's prototype will also be changed.
Is there a way to essentially "scope" changing the prototype to within this file?