Created
June 15, 2018 19:09
-
-
Save thehappybug/9274ae30195bdeb725893cdbf18d605d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { AppContextInterface, withAppContext } from "./AppContext"; | |
const PostInfoComp = ({ appContext }: { appContext?: AppContextInterface }) => | |
appContext && ( | |
<div> | |
Name: {appContext.name} <br /> | |
Author: {appContext.author} <br /> | |
Url: {appContext.url} | |
</div> | |
); | |
export const PostInfo = withAppContext(PostInfoComp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment