Skip to content

Conversation

@whispersofdew
Copy link

Реализация регистрации с использованием React-Query и Redux-toolkit quer

const newErrors: FormErrors = {};

// Валидация email
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Валидацию стоит вынести в отдельный файл, так же рекомендую использовать например Zod для валидации

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants