-1

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...

Paras Buda
  • 51
  • 1
  • 6

2 Answers2

1

You can use state to keep track of your input value

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