M
M
mishapsv2015-09-25 15:27:44
React
mishapsv, 2015-09-25 15:27:44

How to deal with html and body tags in React?

It's pretty clear how to work with components, but html and body are outside.
It is necessary to add the overflow: hidden style to the html when calling the modal window; to remove the second scroll.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Antropov, 2015-09-25
@Laiff

If you answer essentially, this is not a react-way, but to solve the problem, you can directly access the document and do everything there, but it turns out to be very dirty. I would recommend solving this problem in some other way

L
LEV19, 2019-11-23
@LEV19

https://stackoverflow.com/questions/25474803/tryin...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question