
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-combin-refs
Advanced tools
There is no built in feature in reactjs that lets you combine
react refs. One of the mostly used tool in react is React.forwardRef and it only forwars the ref to the parent component and doesn't allow access to current component the ref.
example:
import React, { useRef } from "react";
import useConbinedRef from "react-combine-refs";
const Button = React.forwardRef((props, fRef) => {
// pass the forwared ref fRef to the combiner hook
const cRef = useCombinedRef(fRef);
// use cRef here ...
const { children, ...otherProps } = props;
return (
<Button ref={cRef} {...otherProps}>
{children}
</Button>
);
});
export default function App() {
const ref = useRef();
// use ref here ...
return (
<div>
<Button ref={ref}>Hello</Button>
</div>
);
}
MIT License
FAQs
helps react forward ref to combine and pass the ref even further.
We found that react-combin-refs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.