Title: Small error in tutorial
Last modified: May 5, 2023

---

# Small error in tutorial

 *  Resolved [chase32](https://wordpress.org/support/users/chase32/)
 * (@chase32)
 * [3 years ago](https://wordpress.org/support/topic/small-error-in-tutorial/)
 * Hi, I was following your tutorial and ran into a small issue.
 * This line in api.js:
   const result = **await** wp.users.create**(**user**)**
 * Should be:
   const result = await wp.users().create(user)Hope that helps someone
   that runs into the same issue I did.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [rockiger](https://wordpress.org/support/users/rockiger/)
 * (@rockiger)
 * [3 years ago](https://wordpress.org/support/topic/small-error-in-tutorial/#post-16728275)
 * Thank you! I changed the line.
 *  [alphalate](https://wordpress.org/support/users/alphalate/)
 * (@alphalate)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/small-error-in-tutorial/#post-16774923)
 * Typo in edit.js in section **Updating Contacts with FormData**:
 * const updates = Object.fromEntries(formData);
 * await updateContact(params.contactId, upadates)
 * updates != upadates
 *  Plugin Author [rockiger](https://wordpress.org/support/users/rockiger/)
 * (@rockiger)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/small-error-in-tutorial/#post-16780964)
 * Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Small error in tutorial’ is closed to new replies.

 * ![](https://ps.w.org/reactpress/assets/icon-256x256.png?rev=2471443)
 * [ReactPress - Create React App for Wordpress](https://wordpress.org/plugins/reactpress/)
 * [Support Threads](https://wordpress.org/support/plugin/reactpress/)
 * [Active Topics](https://wordpress.org/support/plugin/reactpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reactpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reactpress/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [rockiger](https://wordpress.org/support/users/rockiger/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/small-error-in-tutorial/#post-16780964)
 * Status: resolved