React native – How to apply useCallback inside loops?
I'm trying to understand memo and useCallback and I've made this minimal example: import { memo, useCallback, useState } from "react"; import { Button, Text, TouchableOpacity, SafeAreaView } from "react-native"; const Item = memo(({ isSelected, index, onClicked }) => {…