Skip to content

Instantly share code, notes, and snippets.

View farunurisonmez's full-sized avatar

Faru Nuri Sönmez farunurisonmez

View GitHub Profile
@r0b0t3d
r0b0t3d / useCallback.md
Created July 10, 2021 09:06
Use of useCallback and useMemo

1. Use

1.1. in callback

const handlePress = useCallback(() => {
	// handle press
}, [])

Good 👍

<Button onPress={handlePress} />