// jsx/Contact.jsx function Contact() { const [result, setResult] = React.useState(""); const [form, setForm] = React.useState({ name: "", email: "", message: "" }); function handleChange(e) { const { name, value } = e.target; setForm((p) => ({ ...p, [name]: value })); } function handleSubmit(e) { e.preventDefault(); setResult("Спасибо! Ваше сообщение отправлено."); setForm({ name: "", email: "", message: "" }); setTimeout(() => setResult(""), 5000); } function sanitize(str) { return String(str).replace(/[<>]/g, ''); } function handleSubmit(e) { e.preventDefault(); const name = sanitize(form.name.trim()); const email = sanitize(form.email.trim()); const message = sanitize(form.message.trim()); if (!name || !email || !message) { setResult("Пожалуйста, заполните все поля корректно."); return; } // отправка на сервер (fetch)... } return (

Контакты

Свяжитесь с нами для демонстрации, пилотного проекта или сотрудничества.

Email
hello@neuromedic.example

Телефон
+7 495 000 00 00

{result}

); }