Comments (2)
Hey @chiefGui, thanks for your question.
Yes, you are right this could be a simple function. But, I was working with React so when I create the function my first thought was to abstract this as a hook, not for a special motivation. But, of course, this could be a function 😅
Otherwise, I think that the hook is more helpful if for some reason I need to update some value inside the functionality. This doesn't exist right now but maybe in the future if someone needs it, will be added.
from use-next-blurhash.
Hey, @ivansevillaa thank you for the quick reply.
I imagined it could be something related to a long-term goal but really had to ask just to make sure. Anyways, it's working like a charm, so - thanks!
from use-next-blurhash.
Related Issues (12)
- SSR? HOT 2
- hydration error when using SSR HOT 5
- How to not block rendering? HOT 1
- [Solved] Vercel Deployment Error (version `ZLIB_1.2.9' not found) HOT 17
- Error: Cannot find module '../build/Release/canvas.node' HOT 3
- xxx has "placeholder='blur'" property but is missing the "blurDataURL" property. HOT 11
- Install Error npm HOT 5
- suggestion: don't use canvas anymore HOT 3
- Installable package broken due to questionable code change in build HOT 1
- hook returns gray image HOT 10
- Not working on latest version of nextjs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from use-next-blurhash.