Html – Can anyone tell me how to avoid on click error in react js
Expected onclick listener to be a function, instead got a value of string type. getListener@http://localhost:3000/static/js/bundle.js:18256:15 accumulateSinglePhaseListeners@http://localhost:3000/static/js/bundle.js:22846:39 onClick={Window.href='https://github.com/'} I am using react js. During on click event shows the above error tell me how I can solve it I will be…