Created
February 9, 2018 09:45
-
-
Save jrwebdev/23b92a4786b88a897a2f4a2798bae127 to your computer and use it in GitHub Desktop.
Hello Pattern #3
This file contains hidden or 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 withBlueBackground, { InjectedBlueBackgroundProps } from './withBlueBackgroud'; | |
| interface HelloProps { | |
| style?: React.CSSProperties; | |
| name: string; | |
| } | |
| const Hello = ({ style, name }: HelloProps & InjectedBlueBackgroundProps) => ( | |
| <div style={style}>Hello, {name}!</div> | |
| ); | |
| export default withBlueBackground<HelloProps>(Hello); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment