Created
February 10, 2023 20:49
-
-
Save jonathasborges1/493a10aa2111c2383b9c3e44c6190f5d to your computer and use it in GitHub Desktop.
Exemplo default de componente React usando arrowFunctions
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 React from 'react'; | |
interface Props { | |
children?: React.ReactNode; | |
} | |
const Component: React.FC<Props> = ({ children, ...props }) => { | |
return ( | |
<>{children}</> | |
) | |
} | |
export default Component |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment