score:2

Accepted answer

in your component's render:

<div classname="product-intro__images" ref={el => this.productintro = el}>

then:

componentdidmount(){
  $(this.productintro).stick_in_parent()
}

you could even do this in the ref callback direct:

ref={el => $(el).stick_in__parent()}

but keep in mind it's not a great idea to mix in stuff that manages dom for you with react code direct and it depends on the plugin - but unexpected behaviour or side effects may occur.

you may also need to cleanup on componentwillunmount(){}

make sure you import $ from 'jquery' and the plugin as well.


Related Query

More Query from same tag