Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[백업] 붕어빵 랜덤 코멘트 삭제 #26

Open
dusunax opened this issue Dec 10, 2022 · 0 comments
Open

[백업] 붕어빵 랜덤 코멘트 삭제 #26

dusunax opened this issue Dec 10, 2022 · 0 comments

Comments

@dusunax
Copy link
Member

dusunax commented Dec 10, 2022

[백업] 붕어빵 랜덤 코멘트 삭제

  • 나중에 해당 내용(붕어빵 랜덤 코멘트)이 필요하다면 하단 코드 재사용하면 됩니다.
  • (아직 삭제 중)
const twoCatsRandomComment = [
  '어서오라냥~',
  '날마다 오는 붕어빵이 아니다냥',
  '맛있는 붕어빵이 있다냥!',
  '친구랑 나눠먹어도 맛있다냥',
  '붕어빵 사가라냥!',
  '붕어빵 만들지 않겠냥?',
  '재료도 고를 수 있다냥!',
  '천원도 카드 된다냥!',
];

const refreshComment = () => {
  let currentComment = (
    <CatsComment>
      {twoCatsRandomComment[Math.floor(Math.random() * twoCatsRandomComment.length)]}
    </CatsComment>
  );
  setRandomCommnet(currentComment);
};

useEffect(() => {
  refreshComment();
}, []);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant