зеркало из
https://github.com/iharh/notes.git
synced 2025-11-01 14:16:09 +02:00
27 строки
711 B
Plaintext
27 строки
711 B
Plaintext
https://reactjs.org/docs/portals.html
|
||
|
||
?
|
||
http://elijahmanor.com/talks/react-to-the-future/dist/#/slide/4/13
|
||
|
||
2020
|
||
https://blog.bitsrc.io/understanding-react-portals-ab79827732c7
|
||
https://nuancesprog.ru/p/11039/
|
||
2019
|
||
https://css-tricks.com/using-react-portals-to-render-children-outside-the-dom-hierarchy/
|
||
2017
|
||
https://hackernoon.com/using-a-react-16-portal-to-do-something-cool-2a2d627b0202
|
||
CodeDojo - Portals
|
||
https://www.youtube.com/watch?v=-qzRU7T4la0
|
||
|
||
sample
|
||
var heading = document.querySelector("#colorHeading");
|
||
|
||
class ColorLabel extends React.Component {
|
||
render() {
|
||
return ReactDOM.createPortal(
|
||
": " + this.props.color,
|
||
heading
|
||
);
|
||
}
|
||
}
|