
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@10up/react-hooks
Advanced tools
Battle tested hooks that can be reused and are safe to use within SSR environments.
Battle tested hooks that can be reused and are safe to use within SSR environments.
useCurrentBreakpoint - Context + Hook to track current CSS breakpoint by leveraging matchMedia.useDebounce - Hook to debounce a quickly changing value, so it doesn't re-render as much.useDebouncedCallback - Hook to debounce an effect that's quickly called.useEffectAfterRender - Hook that only dispatches the effect if the component is mounted.useEvent - Hook for addEventListener to any element.useFocusTrap - Hook to trap focus inside a DOM element. This is great for trapping the focus within a Modal for example.useIsMounted - Hook that returns a function that will yield the current mount state of the component.useIsTransitioning - Context + Hook that tracks routeChange events from Next's Router.useKey - A convenient wrapper around useEvent to handle key presses allowing to send either the key being watched, a function to evaluate or any truthy/falsy value.useOnClickOutside - Hook to add a handler to be executed when the user clicks outside a given ref.useOnMount - Hook to add a handler to be executed when the component mounts.useOnWindowResize - Hook to attach a handler to window resize.useSafeLayoutEffect - Alias hook to safely use useLayoutEffect within SSR environments.useScript - Hook to append a script into the page, preventing the same script to be included more than once.You can create a new hook by running npm run create-hook hookName which will bootstrap the files for you. You might want to run npm run create-hook without any options if you want to see all possible inputs.
FAQs
Battle tested hooks that can be reused and are safe to use within SSR environments.
The npm package @10up/react-hooks receives a total of 0 weekly downloads. As such, @10up/react-hooks popularity was classified as not popular.
We found that @10up/react-hooks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.