Created
August 28, 2022 14:18
-
-
Save pingan8787/361df53875e1e1d27d3d774a36c72ec5 to your computer and use it in GitHub Desktop.
ElementComponent
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 FCProps = { text: string }; | |
const ElementComponent = ({ text }: FCProps): JSX.Element => <div>{text}</div>; | |
function App() { | |
return ( | |
<div className="App"> | |
<ElementComponent text="Hello Chris1993."></ElementComponent> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment