Skip to content

Instantly share code, notes, and snippets.

@sslotsky sslotsky/home.jsx
Created May 22, 2018

What would you like to do?
import React from "react";
import { IdentityConsumer } from "./identity";
import Login from "./login";
export default function Home() {
return (
{ctx => {
if (ctx.user) {
return <h1 data-cy="user">Hello {}</h1>;
return !ctx.authenticated && <Login login={ctx.login} />;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.