T
T
Theory Theory2022-01-30 11:05:44
React
Theory Theory, 2022-01-30 11:05:44

Where is my document.querySelector?

I don't know react well.
Learning styled components. Here we have created wow elements, when clicking on Child we work with the parent element.

How do you get to the parent element? After all, styled components generate classes, i.e. document.querySelector or e.target.closest are useless

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2022-01-30
@Narbek

What problem do you want to solve?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question