Last active
September 18, 2019 19:18
-
-
Save jednano/f4f857f811c4eb961c4024c3e7696305 to your computer and use it in GitHub Desktop.
TypeScript/React
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'; | |
interface Props { | |
bar: string | number; | |
} | |
const Foo: React.FC<Props> = (props) => ( | |
<div>{props.bar}</div> | |
) | |
export default Foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://bit.ly/2kTiqXD