-
Notifications
You must be signed in to change notification settings - Fork 35
change from a function to a React class #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
I was getting an error saying the propTypes were undefined for Packery. I compared the code to the Masonry package which I did not get the errors. I just changed the module from a function to a React class and explicitly required React
|
I don't know right off the bat why the Packery component is wrapped in a function that takes React as an argument, but I cannot see why you should get any errors if you call said function with the |
|
I don't know why I was getting the error either. I am using es2015 import syntax to require the packery component along with React 15.1. I know the minor change fixed the issue. |
|
@bskimball @aknuds1 |
|
I have altered the commit. The masonry component has been "ported" to the packery component. |
|
@bskimball Update the version to 2.0 (in package.json) as well and I'll merge it in + update the npm module. If you're interested in contributing to this then I will also gladly make you a contributor with push privileges! This goes for anyone interested :-) |
|
The version has been updated to 2.0.0. Sure I would be happy to contribute where I can. |
removed the React injection which is no longer necessary as of version 2. Added an es2015 example.
|
@lucbelliveau my PR never got merged, but it does (did) work. It should be fairly straight forward to change it to extending the React Component. You could also move the extend function as a method in the class instead of keeping it separate. I'm not sure this is still maintained, so you might be better off forking this to your own branch. |
|
@bskimball @lucbelliveau I haven't been maintaining this thing for ages - any of you want push access? |
|
This whole project should be reconciled with react-masonry-component as the React wrapper around it would be nearly identical, and that project is maintained (by someone else than me). |
|
Added you both to the repo and npm ✌️ |
|
Thanks @eiriklv I don't seem to have write access |
|
… 24. okt. 2017 kl. 14.10 skrev Luc Belliveau ***@***.***>:
Thanks @eiriklv <https://github.com/eiriklv>
I don't seem to have write access
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#9 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADUybQ8e1MQlU2KMXsoswtJ4Pcphuirmks5svdOzgaJpZM4JAbPA>.
|
I was getting an error saying the propTypes were undefined for Packery. I compared the code to the Masonry package which I did not get the errors. I just changed the module from a function to a React class and explicitly required React