νλ μ ν μ΄μ μ»΄ν¬λνΈ : UIλ§ μλ μ»΄ν¬λνΈ, propsλ§ λ°μμ΄
컨ν μ΄λ μ»΄ν¬λνΈ : 리λμ€μ μ°λλ μ»΄ν¬λνΈ
store
μμ±νκΈ°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));