Skip to content

Instantly share code, notes, and snippets.

View MrRhodes's full-sized avatar
👨‍💻
Technologying

Stephen Rhodes MrRhodes

👨‍💻
Technologying
View GitHub Profile
import { compliment, compose, get } from 'lodash/fp';
import { connect } from 'react-redux';
import { branch, renderComponent } from 'recompose';
const selectIsAuthenticated = state => ({
isAuthenticated: Boolean(state.currentUser),
});
const withAuth = compose(
connect(selectAuthorizationStatus),