VK
const [buttonLabel, setButtonLabel] = useState({
label: 'Add Comments',
})
useEffect(() => {
if (window.innerWidth <= 575) {
setButtonLabel((prev) => {
return {
...prev,
label: 'Comments',
}
})
}
}, [buttonLabel])
Size: a a a
VK
const [buttonLabel, setButtonLabel] = useState({
label: 'Add Comments',
})
useEffect(() => {
if (window.innerWidth <= 575) {
setButtonLabel((prev) => {
return {
...prev,
label: 'Comments',
}
})
}
}, [buttonLabel])
YM
VK
S
YM
L
Д
const [buttonLabel, setButtonLabel] = useState({
label: 'Add Comments',
})
useEffect(() => {
if (window.innerWidth <= 575) {
setButtonLabel((prev) => {
return {
...prev,
label: 'Comments',
}
})
}
}, [buttonLabel])
YM
S
AG
И
Д
AG
L
DS
L
И
L
S
L