Moralis with react js how to insert/update data in a table

No object creation & insert query details provided of another table in react documentation

using the same syntax as in vanilla js works?

https://docs.moralis.io/moralis-server/database/objects#moralis.object

in react this is not working i have already tested

what happens? how is that it doesn’t work?

yes monster.set() is not a function this message was there

what is the code that you used until using monster.set()?

I think that vanilla js syntax should work in react too