해당 페이지(컴포넌트에서 해야하는 것)
1. 임포트 먼저 해주기
import React from "react";
import { useDispatch } from "react-redux";
import { setMessage } from "./redux/modules/user";
리덕스에서 해야할 것
3. Action 지정
4. Action Creator 생성
5. Reducer 사용
Action 지정에서
const SET_MESSAGE = "user/SET_MESSAGE";
는 user라는 파일(user.js)에서 SET_MESSAGE라는 것을 실행한다 라는 의미.