Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miguelitodev/foward-ref
The refs in React are used to imperatively access native elements, being able to directly access their properties or calling functions present in these elements natively.
https://github.com/miguelitodev/foward-ref
react react-ref reactjs refs typescript use-ref-hook useref
Last synced: 15 days ago
JSON representation
The refs in React are used to imperatively access native elements, being able to directly access their properties or calling functions present in these elements natively.
- Host: GitHub
- URL: https://github.com/miguelitodev/foward-ref
- Owner: miguelitodev
- Created: 2021-10-25T20:36:46.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-25T21:08:01.000Z (over 3 years ago)
- Last Synced: 2025-01-10T16:58:46.735Z (16 days ago)
- Topics: react, react-ref, reactjs, refs, typescript, use-ref-hook, useref
- Language: HTML
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Foward Refs
The refs in React are used to imperatively access native elements, being able to directly access their properties or calling functions present in these elements natively.
But within React, the use of refs doesn't stop there, we can use them for much more than that, such as storing values without new component renderings, transferring functionality from child components to the parent component and much more.
## branches
- master (just using fowardRef)
- useImperativeHandle (using ref, but with useImperativeHandle)