Can I use js to get tags in react?


is it possible to use js to get Dom nodes in react, or can js be introduced into react

Aug.06,2021

it's best to use ref


. Your code will work properly. It has nothing to do with whether you use react or not. The only thing to note is that the element you want to select has been rendered to the page

.
Menu