Skip to content

Instantly share code, notes, and snippets.

View jamilalisgandarov's full-sized avatar

Jamil Alisgandarov jamilalisgandarov

  • Baku, Azerbaijan
View GitHub Profile
const Component: React.FC = ({ listOfItems,first,second }) => {
const list = useMemo(
() => listOfItems.map(item => ({
...item,
itemProp1: expensiveFunction(first),
itemProp2: anotherPriceyFunction(second)
})),
[listOfItems]
)
@jamilalisgandarov
jamilalisgandarov / callbackExample.ts
Created October 8, 2020 12:30
callback-example.ts
const Component = () => {
const exampleCallback = () => console.log('You clicked');
return (
<main>
<button onClick={exampleCallback}>Rerender component</button>
</main>
)
}
@jamilalisgandarov
jamilalisgandarov / frontendDevlopmentBookmarks.md
Created December 26, 2017 07:31 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.