Skip to content

Instantly share code, notes, and snippets.

@cellog
Created March 21, 2017 04:05
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 cellog/c7285fbfabc0471dffe80bfb8e1ff5df to your computer and use it in GitHub Desktop.
Save cellog/c7285fbfabc0471dffe80bfb8e1ff5df to your computer and use it in GitHub Desktop.
import AboutToggleLoading from './AboutToggleLoading.jsx'
const About = () => <div>About a specific thing</div>
const Else = () => <div>List of all things we are about</div>
const Loading = () => <div>Loading things...</div>
export const () => (
<AboutToggleLoading component={About} else={Else} loadingComponent={Loading} />
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment