There are a few ways to handle this. Personally, I use a provider file to export an instance that I can import whenever I need it.
Say I need to use the same instance of a class, Foo, all over my app. I'd import Foo into a provider file that makes and exports an instance of it. Then I'd import the instance from that provider where I needed it:
File, Foo.js:
class Foo {};
export default Foo;
File, FooProvider.js
import Foo from './Foo';
export let foo = new Foo();
Component file:
import foo from './FooProvider';
import React, { Component } from 'react';
Class MyComponent extends Component {
someMethod () {
//use foo
}
}
export default MyComponent;