Skip to content

Instantly share code, notes, and snippets.

@michelalbers
Created September 21, 2018 13:34
Show Gist options
  • Save michelalbers/e03750a4f8101b0ffdc56c7b9e8d3779 to your computer and use it in GitHub Desktop.
Save michelalbers/e03750a4f8101b0ffdc56c7b9e8d3779 to your computer and use it in GitHub Desktop.
Example Stateless Component with TypeScript
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