# ninti

> NINTI 🚀 Tiny lib to help work with forms on React

Latest version **0.2.10** (published 2020-03-23) · 0 weekly downloads

## Install

```sh
npm install ninti
pnpm add ninti
yarn add ninti
bun add ninti
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.10 |
| Published | 2020-03-23 |
| First published | 2020-02-09 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 13 |
| Unpacked size | 77.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wolfzer44 |

## Links

- npm: https://www.npmjs.com/package/ninti
- npm.io page: https://npm.io/package/ninti

## Dependencies (13)

- [ninti](https://npm.io/package/ninti.md) ^0.2.56
- [react](https://npm.io/package/react.md) ^16.13.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.12.0
- [dot-object](https://npm.io/package/dot-object.md) ^2.1.2
- [typescript](https://npm.io/package/typescript.md) ~3.7.2
- [@types/jest](https://npm.io/package/@types/jest.md) ^24.0.0
- [@types/node](https://npm.io/package/@types/node.md) ^12.0.0
- [@types/react](https://npm.io/package/@types/react.md) ^16.9.0
- [react-scripts](https://npm.io/package/react-scripts.md) 3.3.1
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^16.9.0
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^9.3.2
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^4.2.4
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^7.1.2

## Recent versions

- 0.2.10 (latest) — 2020-03-23
- 0.2.9 — 2020-02-25
- 0.2.8 — 2020-02-25
- 0.2.72 — 2020-02-25
- 0.2.71 — 2020-02-25
- 0.2.7 — 2020-02-25
- 0.2.56 — 2020-02-25
- 0.2.5 — 2020-02-25
- 0.2.4 — 2020-02-25
- 0.2.3 — 2020-02-25
- 0.2.1 — 2020-02-25
- 0.2.0 — 2020-02-25
- 0.1.0 — 2020-02-09

## README

<h1 align="center">
NINTI 🚀
</h1>
<h3 align="center">
Tiny lib to help work with forms on React
</h3>

## Installation

Just add ninti to your project:

```
yarn add ninti
```

### Basics

Ninti exposes two default form elements: `<Form />` and `<Input />`.

```js
import React from "react";
import { Form, Input } from "ninti";

function App() {
  function handleSubmit(data) {
    console.log(data);

    /**
     * {
     *   email: 'email@example.com',
     *   password: '123456'
     * }
     */
  }

  return (
    <Form onSubmit={handleSubmit}>
      <Input name="email" />
      <Input name="password" type="password" />

      <button type="submit">Sign in</button>
    </Form>
  );
}
```

---
_Source: https://npm.io/package/ninti · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
