
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@effector/reflect
Advanced tools
☄️ Attach effector stores to react components without hooks.
npm install @effector/reflect
# or
pnpm add @effector/reflect
What's the point of reflect?
It's the API design that, using the classic HOC-like pattern, allows you to write React components with Effector in an efficient and composable way.
import { reflect, variant } from '@effector/reflect';
export function UserForm() {
return (
<FormCard>
<Name />
<LastName />
<SubmitButton />
</FormCard>
);
}
const Name = reflect({
view: Input,
bind: {
value: model.$name,
onChange: model.nameChanged,
},
});
const LastName = reflect({
view: Input,
bind: {
value: model.$lastName,
onChange: model.lastNameChanged,
},
});
const SubmitButton = reflect({
view: Button,
bind: {
type: 'submit', // plain values are allowed too!
disabled: model.$formValid.map((valid) => !valid),
onClick: model.formSubmitted,
},
});
Here we've separated this component into small parts, which were created in a convenient way using reflect operators, which is a very simple description of the props -> values mapping, which is easier to read and modify.
With @effector/reflect, our $formValid update will only cause the SubmitButton to be re-rendered, and for all other parts of our <UserForm /> there will literally be zero React work.
To learn more, please read the full Motivation article.
FAQs
☄️ Attach effector stores to react components without hooks
The npm package @effector/reflect receives a total of 1,921 weekly downloads. As such, @effector/reflect popularity was classified as popular.
We found that @effector/reflect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.