Timeline for React make useState initial value conditional
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Jan 30 at 5:21 | history | suggested | bakrall | CC BY-SA 4.0 |
We cannot put data as an argument for a function inside a useState, because useState's initializer function does not receive any arguments
|
| Jan 29 at 9:03 | review | Suggested edits | |||
| S Jan 30 at 5:21 | |||||
| Jan 27, 2023 at 21:58 | comment | added | cyclingLinguist | For more information about why a wrapper function is needed: stackoverflow.com/a/55621679/1465015 | |
| Aug 26, 2021 at 22:09 | history | edited | Rishabh | CC BY-SA 4.0 |
deleted 369 characters in body
|
| S Aug 26, 2021 at 22:01 | review | First answers | |||
| Aug 26, 2021 at 23:49 | |||||
| S Aug 26, 2021 at 22:01 | history | answered | Rishabh | CC BY-SA 4.0 |