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
function SomeReactComponent({ data }) { | |
return ( | |
<div> | |
{data.map(text => <p>{text}</p>)} | |
</div> | |
) | |
} |
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
function SomeReactComponent({ data }) { | |
return ( | |
<div> | |
{data.map((text, index) => | |
<p key={index}> | |
{text} | |
</p>)} | |
</div> |
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
function SomeReactComponent({ products }) { | |
return ( | |
<div> | |
{products.map(product => <ProductCard key={product.id} product={product} />)} | |
</div> | |
) | |
} |
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
#!/usr/bin/env node | |
/* | |
!! README !! | |
What this is: | |
A git post-commit hook script that, if you include a ticket number in the commit message, will: | |
- add the commit message as a comment to that ticket, | |
- (if you add a time portion as well) log time in that ticket |