When you start to have a lot of GSAP() components it can become difficult to locate where an error might be due to all of them having the name GSAPEnhancer and React just telling you to check the render() method of GSAPEnhancer.
This change introduces the same naming convention of react-redux's Connect component by wrapping the composed component name GSAP(ComposedComponent).
I then ran into a few issues with eslint, namely missing dependencies. So, I updated them all to their latest versions and added an npm script to easily run them.
When you start to have a lot of GSAP() components it can become difficult to locate where an error might be due to all of them having the name GSAPEnhancer and React just telling you to check the render() method of GSAPEnhancer.
This change introduces the same naming convention of react-redux's Connect component by wrapping the composed component name
GSAP(ComposedComponent)
.I then ran into a few issues with eslint, namely missing dependencies. So, I updated them all to their latest versions and added an npm script to easily run them.