azazdeaz / react-gsap-enhancer

Use the full power of React and GSAP together
MIT License
727 stars 38 forks source link

Set a displayName for debugging #20

Closed benstepp closed 8 years ago

benstepp commented 8 years ago

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.

azazdeaz commented 8 years ago

@benstepp Thanks a lot, i gonna pull it as soon as i can!

azazdeaz commented 8 years ago

Sorry for the delay, i published the new version on npm. Thanks again!

benstepp commented 8 years ago

Awesome, thanks! 👍