Skip to content

Extending Component instead of .createClass() #12

@thomas-dm

Description

@thomas-dm

Hello there,

I’d like to use your Packery Component without resorting to using React’s createClass() method, and extend React.Component instead to have a full ES6 syntax.

However, the component fails to mount when doing this, as React.PropTypes is undefined in your PackeryComponent function. For the record, your react-masonry-component works great this way, as React is not undefined with it.

Is there any way I could get your Packery Component to work when extending Component without forking it? I'm quite reliant on npm management, so I'd like it to work out of the box.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions