Skip to content

Instantly share code, notes, and snippets.

@timbuckley
Created April 27, 2016 18:44
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 timbuckley/4844650773aea4900047957d7eff0013 to your computer and use it in GitHub Desktop.
Save timbuckley/4844650773aea4900047957d7eff0013 to your computer and use it in GitHub Desktop.
import React from 'react'
class AppTemplate extends React.Component {
componentWillMount() {
this.props.veritfyUserToken()
}
render() {
if (this.props.state.loading) {
return (
<div>Loading...</div>
)
}
return (
<div>
<NavBar />
{this.props.children}
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment