1

I 'm new in React. I hope to extract an image to canvas using jQuery in react. But as you can see in behind, I can't use $. Could you tell me the reason? Thank you for your cooperation.

function display(extract) {

  const canvas = $('#overlay').get(0)
  api.match(canvas, $('#inputImg').get(0))

  $('#Container').empty()
  Images.forEach(canvas => $('#Container').append(canvas))

}
S.Daineko
  • 1,790
  • 1
  • 20
  • 29
Geree Lee
  • 11
  • 2

1 Answers1

0

Most likely you forgot to add the necessary module for the JQuery, or it was added incorrectly.

There is a similar topic on your topic:

How to use JQuery with ReactJS

Hope it will help :)

S.Daineko
  • 1,790
  • 1
  • 20
  • 29