daily pastebin goal
49%
SHARE
TWEET

Untitled

a guest Nov 14th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. import { renderRoutes } from 'react-router-config';
  3. import Header from './components/Header';  
  4. import Footer from '../components/footer'  
  5. import { fetchCurrentUser } from './actions';
  6.  
  7.  
  8. const App = ({ route }) => {
  9.   return (
  10.     <div>
  11.       <Header />
  12.       {renderRoutes(route.routes)}
  13.       <Footer/>
  14.     </div>
  15.   );
  16. };
  17.  
  18. export default {
  19.   component: App,
  20.   loadData: ({ dispatch }) => dispatch(fetchCurrentUser())
  21. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top