this function focus is called when hover and in react
const focus = (value: number) => {
setStyle({transform: "scale(1.5) translateY(-10px)"})
taskBar[value].props.style = style
console.log(taskBar[value].props.style)
}
Basically im trying to add an style to my item but i
m getting this issue
Cannot assign to read only property 'style' of object '#
Why ?