ГЩ
document.querySelector('body').insertAdjacentHTML('beforeEnd', '<h2>TEST</h2>')
как без костылей (типа querySelector(h2)) получить ссылку на новый элемент
Size: a a a
ГЩ
document.querySelector('body').insertAdjacentHTML('beforeEnd', '<h2>TEST</h2>')
L
document.querySelector('body').insertAdjacentHTML('beforeEnd', '<h2>TEST</h2>')
AE
document.querySelector('body').insertAdjacentHTML('beforeEnd', '<h2>TEST</h2>')
M
ГЩ
document.querySelector('body').insertAdjacentHTML('beforeEnd', '<h2>TEST</h2>');
const elem = document.querySelector('body').lastChild
L
document.querySelector('body').insertAdjacentHTML('beforeEnd', '<h2>TEST</h2>');
const elem = document.querySelector('body').lastChild
L
L
document.querySelector('body').insertAdjacentHTML('beforeEnd', '<h2>TEST</h2>');
const elem = document.querySelector('body').lastChild
let newDoc = new DOMParser().parseFromString('<h2>TEST</h2><h3>TEST</h3>', 'text/html'),
allChilds = newDoc.querySelector('body').childNodes;
av
S
S🛸
T
T
L
JB
JSX element type 'Tooltip' is not a constructor function for JSX elements.не знаете ли вы что это такое и как лечить?
Type 'Tooltip' is missing the following properties from type 'ElementClass': render, context, setState, forceUpdate, and 3 more.ts(2605)
ЛХ
T
ᴀs