LaunchPadLab / lp-utils

Our Utilities
MIT License
1 stars 0 forks source link

Add inline documentation and unit testing for `onMount` #10

Closed dpikt closed 7 years ago

dpikt commented 7 years ago

Old docs can be found in legacy-docs.md. Remember to delete the relevant section once it's been added to the auto-generated docs.

davemcorwin commented 7 years ago

This is a Higher Order Component (HOC) that provides the ability to do something during the onComponentDidMount lifecycle event of a wrapped component. We do this to keep as much of our application code as stateless, functional components as possible.

See the tests for onLoad for examples.

wade00 commented 7 years ago

Word! I'll check out onLoad and get on this.

dpikt commented 7 years ago

Resolved in #22