![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@lynxts/web
Advanced tools
TypeScript-first, lightning fast Forms for React.js and React Native. The @lynxts/web
package provides abstractions and helpers specifically for React DOM, which makes working with forms simpler, more maintainable, and intuitive.
@lynxts/web
version usedUsing Yarn:
yarn add @lynxts/core @lynxts/web
Using NPM:
npm i @lynxts/core @lynxts/web
To make using forms in React.js web applications as simple as possible, @lynxts/web
provides a <Form>
React component, which is nothing more than a
element wrapped around Lynx.ts <FormProvider>
. This component accepts all the attributes of a <form>
plus all the <FormProvider>
props which you can use to set up the context. With this approach, your forms will not only be semantically correct, but you can also use aor an to trigger the submit action.
Additionally, this package provides helper components of the basic form elements: <input>
, <select>
, and <textarea>
. These components adds a <label>
and error handling and their intention is for users to quickly jump into using simple forms. However, we strongly recommend creating you own custom field abstractions to get better control and customization.
import { Form, inputOf } from "@lynxts/web";
import { ReactElement, memo, useCallback } from "react";
import { ObjectSchema, object, string } from "yup";
interface Login {
email: string;
password: string;
}
const schema: ObjectSchema<Login> = object({
email: string().email().required(),
password: string().required(),
});
const Input = inputOf<Login>();
const SignIn = memo((): ReactElement => {
const handleSubmit = useCallback((values: Login): void => {
const { email, password } = values;
// Use the validated value to sign in!
}, []);
return (
<Form onSubmit={handleSubmit} validation={schema}>
<Input name="email" label="Email:" />
<Input name="password" label="Password:" />
<button type="submit">{"SignIn"}</button>
</Form>
);
});
You can find the complete API refence here 📚
Suggestions are always welcome! Please create an issue describing the request, feature, or bug. We'll try to look into it as soon as possible 🙂
Contributions are very welcome! To do so, please fork this repository and open a Pull Request to the main
branch.
FAQs
Lynx.ts web package
The npm package @lynxts/web receives a total of 9 weekly downloads. As such, @lynxts/web popularity was classified as not popular.
We found that @lynxts/web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.