DeleteBoard(ID) {
var elem = document.querySelector(ID);
elem.remove();
}
list.map(item, k => {
<h1 key={k + item.id}>{item.name}</h1>
})
//Можно с условием: //
list.map(item, k => {
if(item.id === 3) {
<h1 key={k + item.id}>{item.name}</h1>
} else {
null **(something else)**
}
})
<input maxLength='13' type="number" />
window.addEventListener( "scroll", function() {
if (window.pageYOffset === 700) {
alert("Осталось 300px!");
}, false);
componentDidMount() {
const icon = document.querySelectorAll('.icon-effect')
let current = 0
setInterval(() => {
current = (current + 1) % icon.length
icon[current].classList.toggle('active-icon')
}, 3000)
}