React JS how to update OBJECTS in state 🚗
18.3 هزار بار بازدید -
9 ماه پیش
-
#reactjs
#reactjs #tutorial #course
"You can put objects and arrays into state. In React, state is considered read-only, so you should replace it rather than mutate your existing objects. For example, if you have a form object in state, don’t mutate it:"
Treat any JavaScript object that you put into state as read-only
"You can put objects and arrays into state. In React, state is considered read-only, so you should replace it rather than mutate your existing objects. For example, if you have a form object in state, don’t mutate it:"
Treat any JavaScript object that you put into state as read-only
9 ماه پیش
در تاریخ 1402/09/18 منتشر شده
است.
18,338
بـار بازدید شده