Last active
March 15, 2016 17:57
-
-
Save Austio/0a607302415d309fa9ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { isLoggedIn } from '../../common/utils'; | |
class App extends React.Component { | |
componentWillMount() { | |
isLoggedIn(); // is undefined | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was able to get this working by
import * as utils from '../../common/utils';
then in component doing
utils.isLoggedIn();