N
N
Nikita Stechkin2020-10-03 21:50:03
React
Nikita Stechkin, 2020-10-03 21:50:03

How to access html tags with react js?

Who can tell you how to access html tags through react, i.e. what react js has an analogue of queryselector from native js?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita Mikhailov, 2020-10-03
@Psixodelik

react documentation

H
hzzzzl, 2020-10-03
@hzzzzl

which react js has an analogue

imagine the entire page as some kind of global state with data, depending on which everything is drawn, and work with this data, and not with tags
, but in general, if something needs to be done quickly , then document.querySelectorAll() will work, the output is still normal js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question