Skip to content

Instantly share code, notes, and snippets.

@Austio
Last active March 15, 2016 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Austio/0a607302415d309fa9ee to your computer and use it in GitHub Desktop.
Save Austio/0a607302415d309fa9ee to your computer and use it in GitHub Desktop.
import { isLoggedIn } from '../../common/utils';
class App extends React.Component {
componentWillMount() {
isLoggedIn(); // is undefined
}
}
@Austio
Copy link
Author

Austio commented Mar 15, 2016

I was able to get this working by

import * as utils from '../../common/utils';

then in component doing

utils.isLoggedIn();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment