iam using an external library which is updating the value of input element.So in my react code there is no value and onChange handler for that input element.Now the problem is that i want to access the latest value updated by ther external libarary to that element.Initially it is null.How to achieve that need help...
Asked
Active
Viewed 706 times
-1
-
Using `ref`, you can directly access to an element in react – Abin Thaha Aug 12 '21 at 05:10
-
Need to see code... – Danial Aug 12 '21 at 11:13
2 Answers
0
You can use the ref
to access any element in the DOM directly.
Check the link for more details.

Abin Thaha
- 4,493
- 3
- 13
- 41