[TIL] Uncaught Error: Expected `onClick` listener to be a function, instead got a value of `string` type.

Captainjack·2021년 6월 25일
0

TIL

목록 보기
49/258

If you have a problem like this

you should check 2 options

  1. plz use function in the onClick option

  2. plz don't use ('') in the return

I mean don't use "window.open('https://www.naver.com')" instead of window.open('https://www.naver.com')

just "" different !

check it out!

profile
til' CTF WIN

0개의 댓글