SHARE
TWEET

Untitled

a guest Nov 14th, 2017 45 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
Top