Hello, lets quickly take a review on React forwardRef, what it in actual, In React, the forwardRef function is a…