0.0.3 • Published 8 years ago

react-stateless-lifecycle v0.0.3

Weekly downloads
2
License
ISC
Repository
-
Last release
8 years ago

React Stateless Lifecycle

Add component did mount and component will receive props to stateless component.

Known issues:

  • correct bind this

Example

import addLifecycle from 'react-stateless-lifecycle';

const wrapLifecycle = addLifecycle({
  handleComponentDidMount: Function,
  handleComponentWillReceiveProps: Function,
});

// ...

export default wrapLifecycle(MyComponent);
0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago