Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understanding Forward Ref in React #130

Open
VCnation opened this issue Feb 6, 2023 · 2 comments
Open

Understanding Forward Ref in React #130

VCnation opened this issue Feb 6, 2023 · 2 comments

Comments

@VCnation
Copy link

VCnation commented Feb 6, 2023

Introduction

A ref can be automatically passed via a component to one of its children using the ref forwarding approach. For the majority of the application's components, this is often not required. However, it can be helpful for specific types of components, particularly in libraries of reusable components.

Goals

In this article, we will go through a complete discussion of the forwardRef in react. We will understand the use cases and some examples and see the importance of forwardRef.

Outline

  • Introduction
  • What is is Ref
  • How to Create Refs in React
  • Callback Refs
  • Using React.createRef() API
  • Using useRef() hook
  • Forwarding Ref with React.forwardRef()
  • Conclusion

Sample articles

https://vcnation.hashnode.dev/examine-reactivex-using-typescript-and-nodejs

https://vcnation.hashnode.dev/how-to-build-serverless-applications-using-the-serverless-framework-and-fauna

@BirdboyBolu
Copy link

Hello @VCnation is this article still available? I would love to handle it. Please let me know

@VCnation
Copy link
Author

VCnation commented Apr 1, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants