diff --git a/README.md b/README.md index 496dfda..b3a2a0e 100644 --- a/README.md +++ b/README.md @@ -124,8 +124,7 @@ const App = () => { const ref = useRef(); const renderCard = useCallback( - (image: ImageSourcePropType, index: number) => { - console.log('index', index); + (image: ImageSourcePropType) => { return ( { const ref = useRef(); - const renderCard = useCallback( - (image: ImageSourcePropType, index: number) => { - console.log('index', index); - return ( - - - - ); - }, - [] - ); + const renderCard = useCallback((image: ImageSourcePropType) => { + return ( + + + + ); + }, []); const OverlayLabelRight = useCallback(() => { return (