πŸ°μ»¨ν…Œμ΄λ„ˆ μ»΄ν¬λ„ŒνŠΈ μ•ˆμ—μ„œ ν”„λ ˆμ  ν…Œμ΄μ…˜ μ»΄ν¬λ„ŒνŠΈλ₯Ό μ‚¬μš©ν•˜λŠ” κ²ƒμ΄λ‹€πŸ°


ν”„λ ˆμ  ν…Œμ΄μ…˜ μ»΄ν¬λ„ŒνŠΈ : UI만 μžˆλŠ” μ»΄ν¬λ„ŒνŠΈ, props만 λ°›μ•„μ˜΄


μ»¨ν…Œμ΄λ„ˆ μ»΄ν¬λ„ŒνŠΈ : λ¦¬λ•μŠ€μ™€ μ—°λ™λœ μ»΄ν¬λ„ŒνŠΈ

πŸ°λ§Œλ“œλŠ” λ°©λ²•πŸ°

import * as actions from 'store/modules/user'; // λͺ¨λ“ˆμ—μ„œ λͺ¨λ“  μ•‘μ…˜μƒμ„±ν•¨μˆ˜λ₯Ό
																							 // actionμ΄λž€ μ΄λ¦„μœΌλ‘œ κ°€μ Έμ˜΄
import { useDispatch, useSelector } from 'react-redux';

const { profileUrl } = useSelector((state) => ({
    profileUrl: state.user.profileUrl,
  }));
dispatch(actions.changeUserProfilePhoto(profileUrl));