
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
flummox-component
Advanced tools
A simple way to connect React components to flummox stores and actions
A simple way to connect React components to flummox stores and actions
npm install flummox-component
ES6+ way:
import React from 'react';
import fComponent from 'flummox-component';
export default fComponent('ComponentName', {
actions: ['exampleActions', 'myActions'],
stores: ['exampleStore', 'myStore'],
propTypes: {
propertyOne: React.PropTypes.any,
propertyTwo: React.PropTypes.any,
},
onClick(e) {
this.actions.exampleActions.onClick(e);
},
render() {
return (
<a onClick={this.onClick}>Click me!</a>
);
},
...other component methods
});
ES5 way:
var React = require('react');
var fComponent = require('flummox-component');
module.exports = fComponent('ComponentName', {
actions: ['exampleActions', 'myActions'],
stores: ['exampleStore', 'myStore'],
propTypes: {
propertyOne: React.PropTypes.any,
propertyTwo: React.PropTypes.any,
},
onClick: function(e) {
this.actions.exampleActions.onClick(e);
},
render: function() {
return (
<a onClick={this.onClick}>Click me!</a>
);
},
...other component methods
});
Flummox component is MIT licensed.
FAQs
A simple way to connect React components to flummox stores and actions
The npm package flummox-component receives a total of 2 weekly downloads. As such, flummox-component popularity was classified as not popular.
We found that flummox-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.