DEV Community

loading...

Discussion on: A Dive Into React Hooks

Collapse
marklai1998 profile image
Mark Lai

The setValue syntax still wrong

setValue({text: 'Earth'})
Collapse
melvinmanni profile image
Melvin Kosisochukwu Author

That is not the syntax in the image

Collapse
marklai1998 profile image
Mark Lai

I mean your last image is wrong

the syntax should be

setValue({text: 'Earth'})