Last active
November 8, 2019 18:11
-
-
Save mcpar-land/50f3efbd143ff12b1464a7a7e9f9299c to your computer and use it in GitHub Desktop.
JSDoc for React functional component props
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
/** | |
* @type {React.FC<{ | |
* propertyOne: string, | |
* propertyTwo: ComplicatedClass<GenericType>, | |
* propertyThree: any, | |
* propertyFour: (fxnArg: object) => string | |
* }>} | |
*/ | |
const ComplicatedComponent = ({propertyOne, propertyTwo, propertyThree, propertyFour}) => { | |
// ... | |
return <> | |
{/* ... */} | |
</>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment