
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-sign
Advanced tools
Pass onEnter or onLeave functions to detect when component shows on user's screen to load more data in lists or play animations.
$ npm install react-sign
$ yarn add react-sign
Put React sign where you want detect user scrolled there.
<ReactSign onEnter={() => doSomthing()} onLeave={() => doAnotherThing()} />
Or Put your component (block of code) in React sign.
const ReactSign2: Story = (args) => {
const onEnter = () => {
console.log('Component is in');
};
const onExit = () => {
console.log("Component isn't in");
};
return (
<div style={{ display: 'flex', flexDirection: 'column' }}>
<h3>scroll down 👇👇</h3>
<div style={{ height: '2500px' }} />
<ReactSign onEnter={onEnter} onLeave={onExit}>
<div
style={{
height: '250px',
border: '1px dashed red',
alignItems: 'center',
display: 'flex',
justifyContent: 'center',
}}
>
<p>I am here...</p>
</div>
</ReactSign>
</div>
);
};
Also you can set a threshold to run onEnter and onExit after that. Threshold should be between 0 and 1.
For example to run functions in %50 of component height you can do like this:
<ReactSign threshold={0.5} />
FAQs
Easy load more in react. Is my component on user's viewport?!
We found that react-sign demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.