
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Makes constructing forms in a React/Redux application easier.
Install:
$ npm install --save formux
Define your components:
import { Form, reduxField } from 'formux';
import * as Validator form 'extensible-validator';
// define a reusable input component
// this one automatically adds the 'has-error' class if there is a validation error
const Input = reduxField()(
(props) => <input type='text' value={props.value} onChange={props.onChange} className={props.valid ? '' : 'has-error'} />
);
// make a form
// wire up onValidSubmit which only gets called if the form is valid
const Page = (
<div>
...
<Form path='person' onValidSubmit={addPerson}>
<Input name='name' validator={new Validator.String().required()} />
<Input name='age' validator={new Validator.Number().required()} />
<button type='submit'>Submit</button>
</Form>
</div>
);
You also need to install the reducer, e.g.:
import { reducer } from 'formux';
import { combineReducers } from 'redux';
const rootReducer = combineReducers({
...
forms: reducer
});
FAQs
Makes constructing forms in a React/Redux application easier
We found that formux 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.