
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
auto-form-struct
Advanced tools
Simple, unopinionated, and declarative form binding for React.
To build a form for the following data structure:
value = {
inner_struct: {
name: "Bob",
age: 32
},
outer_field: "foobar"
}
Render the following JSX:
const AutoInput = AutoWired('input');
// in render:
<AutoForm value={value} onChange={...}>
<FormStruct name="inner_struct">
<AutoInput name="name" type="text" />
Additional Text
<AutoInput name="age" type="number" />
</FormStruct>
<AutoInput name="outer_field" type="text" />
</AutoForm>
onChange will be called with values of the structure above any time a form input changes.
Both AutoForm and FormStruct accept a prop called element which specifies what component to render wrapping their children. AutoForm defaults to rendering a normal form, and FormStruct renders a section.
In order for this package to auto-wire form inputs, any inputs should have a boolean prop called autowire with the value true. This package exports a higher ordered component called AutoWired which adds this prop and defaults it to true. For example, to render a textarea tag:
const AutoTextArea = AutoWired('textarea');
// in render:
<AutoForm>
<AutoTextArea name="body" />
</AutoForm>
FAQs
Auto form binding for ReactJS
We found that auto-form-struct 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
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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.