Skip to content
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

Updated packages and old React Pre-hooks code to modern syntax. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

migsdeving
Copy link

I found this package and when I tried to use it didn't work. After cloning and trying to npm install, one of the packages failed to install, probably because it was obsolete.
This package is a super clean way to turn HTML elements into Images in React, so I decided to give it some very deserved love.
Firstly I updated the package.json to the current newest versions of dependencies. After that, I refactored the code to the modern React syntax with hooks.
I also fixed a typing error on the Readme file that confused me when I tried to use the package first.
It's currently working for me, so I hope this helps some other people.

Note: Regarding the issue: #5 I am getting the same bug, especially if I have actual images inside my div element. Right now, I'm opening this PR to fix and update the package as it is, but if I have some extra time, I will try and fix that bug because I need it to work for a project of mine too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant