Skip to content

Instantly share code, notes, and snippets.

View ishaqibrahimbot's full-sized avatar
🎯
Focusing

Ishaq Ibrahim ishaqibrahimbot

🎯
Focusing
View GitHub Profile
@ishaqibrahimbot
ishaqibrahimbot / post-commit
Last active November 29, 2022 05:41
This is a git post-commit hook script that, if you include a JIRA 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
#!/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
function SomeReactComponent({ products }) {
return (
<div>
{products.map(product => <ProductCard key={product.id} product={product} />)}
</div>
)
}
function SomeReactComponent({ data }) {
return (
<div>
{data.map((text, index) =>
<p key={index}>
{text}
</p>)}
</div>
@ishaqibrahimbot
ishaqibrahimbot / array.jsx
Last active February 6, 2022 10:32
Mapping an array to create components in React
function SomeReactComponent({ data }) {
return (
<div>
{data.map(text => <p>{text}</p>)}
</div>
)
}