react-snuggle icon indicating copy to clipboard operation
react-snuggle copied to clipboard

Refactor to use hooks and others features

Open danilowoz opened this issue 5 years ago • 1 comments

Refactor

From now on, it uses hooks internally

onLoad event

Once a component has an image, we need to make sure that the image has loaded and to recalculate the grid. But it has been overwhelmed to manage the loading image out of the package, so in order to simplify the API, it would be a good idea to add events into the Snuggle.

Lazy-loading example

Solves #11 lazy loading issue.

danilowoz avatar May 01 '20 14:05 danilowoz

@pbrandone could you please take a look?

danilowoz avatar Aug 24 '20 13:08 danilowoz