#Props getting edited

11 messages · Page 1 of 1 (latest)

shut sedge
#

<@&752637460550385834>

#

check the console.logs

desert lynx
#

You really want to call moderators for that?

hoary coyote
#

use spread operator to initialize state ? like useState(…props.abc)

shut sedge
#

it still edits the value

#

and yeah its an Object data

hoary coyote
#

something is off, i think the component is re rendering with new props because im not sure it actually lets you modify the actual props from within the child component

#

it is anti pattern