I
I
IIITRIX2019-05-20 00:43:17
React
IIITRIX, 2019-05-20 00:43:17

How to make a div always open next to html?

Tell me how to make the div block open only near the closing tag /html when clicked.
That is, there are a bunch of components where you need to call a modal window, inserted at the bottom of each component and, accordingly, when called, it is displayed in the wrong place when viewing the code!
<Modal>Контент< Modal>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Proskurin, 2019-05-20
@IIITRIX

You can create a portal https://reactjs.org/docs/portals.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question