All files / src/app index.jsx

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                  3x 1x         3x 2x        
/* eslint-disable */
/*
 * © Jordan Tart https://github.com/jtart
 * https://github.com/jtart/react-universal-app
 */
import React from 'react';
import { StaticRouter, BrowserRouter } from 'react-router-dom';
import App from './App';
 
export const ClientApp = props => (
  <BrowserRouter {...props}>
    <App initialData={props.data} routes={props.routes} />
  </BrowserRouter>
);
 
export const ServerApp = props => (
  <StaticRouter {...props}>
    <App initialData={props.data} routes={props.routes} />
  </StaticRouter>
);