You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zatial na rychle spravy pouzivame javacsriptovy alert('Moja sprava'), ktory to tak skaredsie browser-nativne zakrici... vieme spravit vlastny alert podobne ako dialogy, co uz mame.
dbal by som ale na ease of use, takze keby sme chceli zachovat jednoduchy usage ako:
<buttononClick={()=>alert('daco sa pokazilo')}>alert</button>
tak by som k tomu pridal max dalsi riadok, napr.
const{alert}=useAlert()...<buttononClick={()=>alert('daco sa pokazilo')}>alert</button>
a tym padom by som inklinoval k novemu Containeru (context provideru), ktory do stranky prida nejaky vzdy-mountnuty dialog, ktory sa zavolanim alert len naplni a otvori.
malo by to byt pomerne jednoduche 🙁
The text was updated successfully, but these errors were encountered:
zatial na rychle spravy pouzivame javacsriptovy
alert('Moja sprava')
, ktory to tak skaredsie browser-nativne zakrici... vieme spravit vlastny alert podobne ako dialogy, co uz mame.dbal by som ale na ease of use, takze keby sme chceli zachovat jednoduchy usage ako:
tak by som k tomu pridal max dalsi riadok, napr.
a tym padom by som inklinoval k novemu Containeru (context provideru), ktory do stranky prida nejaky vzdy-mountnuty dialog, ktory sa zavolanim
alert
len naplni a otvori.malo by to byt pomerne jednoduche 🙁
The text was updated successfully, but these errors were encountered: