I am using a third party javascript function (link) to do a polygon cripper inside my react application by using jquery
The codes I have come up with it is as follow: