Created
April 30, 2021 14:12
-
-
Save neekey/e0e2f46e166e7994359ed9277aad8353 to your computer and use it in GitHub Desktop.
[artile-codegist]Why You Should Wrap Your JSX With Parentheses
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
const homePageLink = currentPage !== 'home' ? ( | |
<a | |
className="home-page-link" | |
target="_blank" | |
href="#home"> | |
Home | |
</a> | |
) : null; |
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
const homePageLink = currentPage !== 'home' ? <a | |
className="home-page-link" | |
target="_blank" | |
href="#home"> | |
Home | |
</a> : null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment