Create new users in a custom form (React)


I created a personalized form with React but i don’t understand how i can create a user.

I readed the docs about create users but i don’t understand WHERE put the code.

Accounts.createUser(options, [callback])
        import { Accounts } from 'meteor/accounts-base'

This is in server? A new js file? (server/users/create_user.js)? How i can made work? What about the security? (I can add a user with the console in the browser?). Where there a good tutorial with the custom forms and create users with react and meteor?

Thanks for your help and sorry for my bad english.

1 Like