Created
September 21, 2018 13:34
-
-
Save michelalbers/e03750a4f8101b0ffdc56c7b9e8d3779 to your computer and use it in GitHub Desktop.
Example Stateless Component with TypeScript
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
interface FooProps { | |
someProp: string; | |
someOtherProp: boolean; | |
} | |
const FooComponent: React.SFC<FooProps> = (props) => ( | |
<div>Hello!</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment