import React, {
Component
}
from 'react';
class MyApp extends Component {
constructor() {
super();
this.state = {
arr: [1, 2, 3, 4],
disabled: false
};
}
clicked = (index) = > {
this.setState({
disabled: true
})
}
render() {
const maparray = this.state.arr.map((index, MapArray) = > {
return {
MapArray
}
}) return ({
maparray
});
}
}
export
default MyApp;





нажал = (индекс) = > {document.getElementBYid(index).disavled=true;})} render() {const maparray = this.state.arr.map((index, MapArray) = > { вернуть { MapArray
Я не понимаю вопроса...можете переформулировать?