Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/unlight/ref-holder

Friendly util function for holding reference to element for react-like frameworks
https://github.com/unlight/ref-holder

element-react react-helpers react-like

Last synced: 6 days ago
JSON representation

Friendly util function for holding reference to element for react-like frameworks

Awesome Lists containing this project

README

        

ref-holder
===
Friendly util function for holding reference to element for react-like frameworks

INSTALL
---
```
npm install --save ref-holder
```

USAGE
---
```tsx
import { refHolder } from 'ref-holder';

const inputElementHolder = refHolder();
render(, document.body);
console.log(inputElementHolder.ref); //
console.log(inputElementHolder.ref.value); // 'jimbo'
```

CHANGELOG
---
See [CHANGELOG.md](CHANGELOG.md)