Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/unlight/ref-holder
- Owner: unlight
- License: mit
- Created: 2018-06-09T09:21:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-09T18:03:26.000Z (over 6 years ago)
- Last Synced: 2024-09-25T06:38:53.259Z (about 2 months ago)
- Topics: element-react, react-helpers, react-like
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ref-holder
===
Friendly util function for holding reference to element for react-like frameworksINSTALL
---
```
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)