
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
react-formation
Advanced tools
[](https://travis-ci.org/k88hudson/react-formation) [](https://coveralls.io/
At current time of writing, this is a component API experiment -- the validation support etc. is still in progress.
Clone the example repo from https://github.com/k88hudson/react-formation-example to try this out.
Using this form library, you can
Handling any kind of nested display and control of user input can be tricky in React. In order to prevent synchronization errors, we want to maintain a single source of truth for our form's data instead of fragmenting it down the component tree; however, this can become overly complex, verbose, and/or fragile if the components get too nested or the data model of the data set is very large.
Inspired by react-router, react-formations uses a top-level schema in combination with React's context feature to maintain a consistent api at all levels of the component tree.
Any form system that requires the use of generated inputs or specific input component structures quickly becomes too rigid except for the simplest of forms.
react-formations allows you to use any input or component you like, in any html structure you like. Links back to the single source of truth are managed via React's two-way-binding utility, which can be added directly to native inputs or controlled manually in an onChange handler.
No matter how you chose to validate your data, displaying error messages almost always requires a lot of complex logic from multiple sources: did the user attempt to submit? Are there any errors? Is the field required?
react-formations attemps to simplify this by providing a means of tracking submit status and validity/errors for each field at the top level component, and exposing this information to all child components via the context API.
It also includes an component with good default behaviour in both single and multi form contexts.
Check out the guide and examples.
FAQs
[](https://travis-ci.org/k88hudson/react-formation) [](https://coveralls.io/
The npm package react-formation receives a total of 7 weekly downloads. As such, react-formation popularity was classified as not popular.
We found that react-formation 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.