
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
beautiful-react-hooks
Advanced tools
A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development
A collection of tailor-made React hooks to enhance your development process and make it faster.
๐ฌ๐ง English | ๐จ๐ณ ็ฎไฝไธญๆ | ๐ฎ๐น Italiano | ๐ช๐ธ Espaรฑol | ๐บ๐ฆ Ukrainian | ๐ง๐ท Brazilian Portuguese | ๐ต๐ฑ Polski | ๐ฏ๐ต ๆฅๆฌ่ช | ๐น๐ท Tรผrkรงe
Custom React hooks allow developers to abstract the business logic of components into single, reusable functions.
I have noticed that many of the hooks I have created and shared across projects involve callbacks, references, events, and dealing with the
component lifecycle.
Therefore, I have created beautiful-react-hooks
, a collection of useful React hooks that may
help other developers speed up their development process.
Moreover, I have strived to create a concise and practical API that emphasizes code readability, while keeping the learning curve as low as
possible, making it suitable for larger teams to use and share
t
-- Please before using any hook, read its documentation! --
by using npm
:
$ npm install beautiful-react-hooks
by using yarn
:
$ yarn add beautiful-react-hooks
importing a hooks is as easy as the following straightforward line:
import useSomeHook from 'beautiful-react-hooks/useSomeHook'
Some hooks are built using third-party libraries (such as rxjs, react-router-dom, redux). As a result, you will see these libraries listed
as peer dependencies.
Unless you are using these hooks directly, you need not install these dependencies.
Contributions are very welcome and wanted.
To submit your custom hook, make sure you have thoroughly read and understood the CONTRIBUTING guidelines.
Prior to submitting your pull request: please take note of the following
npm test
and npm build
before submitting your merge request.Icon made by Freepik from www.flaticon.com
FAQs
A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development
The npm package beautiful-react-hooks receives a total of 33,474 weekly downloads. As such, beautiful-react-hooks popularity was classified as popular.
We found that beautiful-react-hooks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.