You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library would be much easier to use with Typescript if it was possible to use it as a super class. E.g.,
import{GSAPComponent}from"react-gsap-enhancer"classMyComponentextendsGSAPComponent{componentDidMount(prevProps,prevState){super.componentDidMount(prevProps,prevState)this.myController=this.addAnimation(...)}render(){// I understand that the enhancer render function needs to add refs, so// perhaps the API can be something like this:super.render(()=>{// the usual render function business..return<div... />})}}
The text was updated successfully, but these errors were encountered:
The library would be much easier to use with Typescript if it was possible to use it as a super class. E.g.,
The text was updated successfully, but these errors were encountered: