
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
Simple fades in React
npm i react-fade
Children components will start invisible and fade into a visible state.
<Fade>
<p>I am so faded</p>
</Fade>
Fade out requires some extra code to stay invisble after it's been faded-out. Right now, the recommended way of using <Fade out/> is to utilize the duration property in conjuction with css display or visibilty. For example:
import { default as React, Component } from 'react'
import { default as Fade } from 'react-fade'
const fadeDuration = 10
class FadeExample extends Component {
state = {
fadeOut: false,
visibility: 'visible'
}
componentDidUpdate(nextProps, { fadeOut }) {
if (fadeOut) {
setTimeout(() => {
this.setState({
visibility: 'hidden'
})
}, fadeDuration)
}
}
render() {
return (
<div>
<Fade
out={this.state.fadeOut}
duration={fadeDuration}
style={{
visibility: this.state.visibility
}}
>
<p>I am so faded</p>
</Fade>
<button onClick={() => this.setState({ fadeOut: true })}>
Fade out
</button>
</div>
)
}
}
| Prop | Type | Description |
|---|---|---|
| out | bool | fades out instead of in - see instructions for usage patterns |
| duration | number | the amount of time in seconds that it takes to fade in or out |
FAQs
Simple fades in React
The npm package react-fade receives a total of 64 weekly downloads. As such, react-fade popularity was classified as not popular.
We found that react-fade 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.