
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.
React hook to use with lax.js.
import React from 'react';
import { useLax, useLaxElement } from 'use-lax';
function App() {
const [showBubble, setBubble] = useState(false);
const toggleBubble = () => setBubble(!showBubble);
// Use once in the top level element
// to configure drivers and initial elements
// https://github.com/alexfoxy/lax.js#setup
useLax({
drivers: [
{
name: 'scrollY',
getValueFn: () => window.scrollY,
},
],
});
return (
<div>
<button className="toggle-bubble" onClick={toggleBubble}>
Toggle Bubble
</button>
<p>{showBubble ? '...now scroll down...' : '^ press the button ^'}</p>
{showBubble ? <Bubble /> : null}
</div>
);
}
function Bubble() {
// Use it on every component added dynamically
// and provide the animation driven from the drivers
const ref = useLaxElement({
animationData: {
scrollY: {
presets: ['fadeInOut:200:0'],
translateX: [
[0, 'screenHeight'],
[0, 'screenWidth'],
],
},
},
});
return <div ref={ref} className="bubble" />;
}
Thanks goes to these wonderful people (emoji key):
Arthur Denner 💻 🎨 📖 💡 🤔 🚧 | Antoine Martin 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
React hook to use with lax.js.
The npm package use-lax receives a total of 8 weekly downloads. As such, use-lax popularity was classified as not popular.
We found that use-lax 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.