
What is contextSafe( )
contextSafe(fn) returns a wrapped function.
Inside that wrapped function, any GSAP calls are registered to the component’s context.
When the component unmounts , GSAP automatically kills the animations so you don’t need manual cleanup.
#learninginpublic
English
