
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
react-morph
Advanced tools
Magically animates one element into another just by tagging the first and last state.
npm install react-morph
# or
yarn add react-morph
Import the useMorph hook.
const morph = useMorph(options);
Then spread the props to the elements you want to morph.
<img {...morph} src="larva.png" width="50">
<img {...morph} src="butterfly.png" width="80">
Make sure you have just ONE element rendered at same time.
useMorph hook.{...morph}import React from 'react';
import { useMorph } from 'react-morph';
() => {
// Handle toggle state as you normally would.
const [toggle, setToggle] = useState(true);
const morph = useMorph();
return (
<div>
<button onClick={() => setToggle(!toggle)}>Let's morph!</button>
<br />
{toggle ? (
<img {...morph} src={larva} width="30" />
) : (
<img {...morph} src={butterfly} width="80" />
)}
</div>
);
};
Please check the documentation.
FAQs
Ui transitions made simple
The npm package react-morph receives a total of 189 weekly downloads. As such, react-morph popularity was classified as not popular.
We found that react-morph 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
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.

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