# findbyview

> Getting HTML id and React refs

Latest version **1.0.2** (published 2022-07-01) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-07-01 |
| First published | 2022-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Der_Googler |
| Maintainers | der_googler |

## Links

- npm: https://www.npmjs.com/package/findbyview
- Repository: https://github.com/DerGoogler/findByView
- Issues: https://github.com/DerGoogler/findByView/issues
- npm.io page: https://npm.io/package/findbyview

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^18.2.0

## Recent versions

- 1.0.2 (latest) — 2022-07-01
- 1.0.1 — 2022-07-01
- 1.0.0 — 2022-07-01

## README

# findByView

````javascript
/**
 * @param id Given element or ref
 * @param callback HTMLElement or React.RefObject
 *
 * @description
 * Usage
 * ```ts
 * // Id's
 * new findByView("element", (element: HTMLElement) => { element.style.display = "none" })
 *
 * // Refs
 * new findByView(this.myRef, (ref: HTMLElement) => { ref.style.display = "none" })
 *
 * // Get direclty
 * new findByView("element").get?.addEventListener("click", () => thisArgument.click());
 * ```
 */
````

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