1.3.3 • Published 7 years ago

react-inject-props-decorator v1.3.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

react-inject-props-decorator

License: MIT npm version

ES7 decorator to inject props in your react component methods.

Install

$ npm i -S react-inject-props-decorator

or

$ yarn add react-inject-props-decorator

Example

import React, { Component } from 'react';
import injectProps from 'react-inject-props-decorator';

class HelloUser extends Component {

  @injectProps
  render({firstName, lastName}) {
    return (
      <div>Hello {firstName} {lastName}</div>
    )
  }
}

License

MIT

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago