latentcat / uvcanvas

An React.js component library for beautifully shaded canvas https://uvcanvas.com
https://uvcanvas.com
1.01k stars 36 forks source link

Extract the generic logic into a useOgl hook #12

Open StringKe opened 2 months ago

StringKe commented 2 months ago
  1. Extract generic logic into useOgl hook to reduce duplicate code.
  2. Enhancing Element Size Change Updates with ResizeObserver

Without modifying all the components, the hook is wrapped in a way that I'm not sure is required for uvcanvas.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
uvcanvas ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2024 8:54am