Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@seegno/react-forms
Advanced tools
Manage React form state the easy way and validate with [json-schema](https://json-schema.org/).
Manage React form state the easy way and validate with json-schema.
yarn add @seegno/react-forms
Make sure you have at least version 16.8 of React:
yarn add react@^16.8.0
import { FormProvider, useField } from '@seegno/react-forms';
function Input({ name }) {
const { onChange, value } = useField(name);
return (
<input
name={name}
onChange={event => onChange(event.target.value)}
value={value}
/>
);
}
function Form() {
return (
<FormProvider
jsonSchema={{
properties: {
foo: { type: 'string' }
},
type: 'object'
}}
onSubmit={values => console.log('submit', values)}
>
{({ submit }) => (
<form onSubmit={submit}>
<Input name={'foo'} />
<button type={'submit'}>
{'Submit'}
</button>
</form>
)}
</FormProvider>
);
}
Run the tests from the root directory:
yarn test
Found a bug or want to suggest something? Take a look first on the current and closed issues. If it is something new, please submit an issue.
It will be awesome if you can help us evolve @seegno/react-forms
.
Want to help?
yarn
.yarn test
.v0.15.0 (2022-05-31)
Merged pull requests:
FAQs
Manage React form state the easy way and validate with [json-schema](https://json-schema.org/).
The npm package @seegno/react-forms receives a total of 15 weekly downloads. As such, @seegno/react-forms popularity was classified as not popular.
We found that @seegno/react-forms 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.