Expected
onclicklistener to be a function, instead got a value ofstringtype. getListener@http://localhost:3000/static/js/bundle.js:18256:15 accumulateSinglePhaseListeners@http://localhost:3000/static/js/bundle.js:22846:39
<button onClick={Window.href='https://github.com/'} className="btn btn-github" >
I am using react js. During on click event shows the above error tell me how I can solve it I will be very glad? My on click event is not working while using react.
Try doing this :