Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
react-cosmos-stateful-proxy
Advanced tools
A stateful container for stateless react components
npm package https://www.npmjs.com/package/react-cosmos-stateful-proxy
Stateless react components are pretty common but they can be kind of hard to test by themselves when you don't have a wrapper component to hold the state.
That is where this stateful proxy comes in.
to use:
// cosmos.proxies.js
import StatefulProxy from 'react-cosmos-stateful-proxy';
export default [
StatefulProxy,
// ...other proxies
]
// __fixtures__/example.js
export default {
component: MyComponent,
// Any function property you want controlled should be passed into controllers
// the controllers use React's State internally and the return values will work like setState
// for example: the onChange of this component will change the prop 'value'
controllers: {
onChange: value => ({ value })
}
}
FAQs
A stateful container for stateless react components
The npm package react-cosmos-stateful-proxy receives a total of 5 weekly downloads. As such, react-cosmos-stateful-proxy popularity was classified as not popular.
We found that react-cosmos-stateful-proxy 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
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.