Skip to content

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.

Notifications You must be signed in to change notification settings

miguelitodev/foward-ref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Video

About

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.

Topics

Resources

Stars

Watchers

Forks