entry-client.js 300 Bytes
import React from 'react';
import { render } from 'react-dom';
import App from './index';

const getContext = () => {
    let { pathname } = window.location;

    return {
        path: pathname,
        client: true
    };
}

render(<App context={getContext()} />, document.getElementById('root'));