craig1123 / react-recipes Goto Github PK
View Code? Open in Web Editor NEW๐ฉโ๐ณ A list of React Hooks utility library containing popular customized hooks
License: MIT License
๐ฉโ๐ณ A list of React Hooks utility library containing popular customized hooks
License: MIT License
Force a react component to rerender https://medium.com/@dev.cprice/wild-react-useforceupdate-e4459f2c1272
For example, if I trying to set the value true; max-age=3600
โ it's doesn't work correctly: I see true%3B%20max-age%3D3600
, but I expect true
with expires date
A new hook that can be used for React portals
subj
a custom hook that utilitizes dragging and dropping
Documentation:
updateCookie: Function(string): Set a new value of the cookie
Source code:
https://github.com/craig1123/react-recipes/blob/master/src/useCookie.js#L16
a hook that gets and sets query params
intersection observer API
Hi,
The peer dependencies on react prevents us from using it with react 17 (the default version used by nextjs 10 for example, and probably the latest CRA version...).
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from [email protected]
npm ERR! node_modules/react-recipes
npm ERR! react-recipes@"^1.1.0" from the root project
npm ERR!
I will open a PR soon to solve this issue.
Any plans for this?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.