Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

447
Views
TypeError no detectado: (0, react__WEBPACK_IMPORTED_MODULE_0__.useState) no es una función o su valor de retorno no es iterable

No puedo entender por qué este código no funciona. Obteniendo estos errores: ingrese la descripción de la imagen aquí

Mi reacción y reacción son ^ 17.0.2. ¡Cualquier aporte se agradecerá!

registro de formulario

 import React from 'react'; import useForm from './useForm'; import validate from './validateInfo'; import './Form.css'; const FormSignup = ({submitForm}) => { const {handleChange, values, handleSubmit, errors} = useForm(submitForm, validate); return ( <div className='form-content-right'> <form className='form' onSubmit={handleSubmit} noValidate> <h1>Get started with us today! Create your account by filling out the information below.</h1> <div className='form-inputs'> </div> <button className='form-input-btn' type='submit'>Sign Up</button> <span className='form-input-login'> Already have an account? Login <a href='#'>here</a> </span> </form> </div> ); }; export default FormSignup;

Formulario.js:

 import React, {useState} from 'react'; import FormSignup from './FormSignup'; import FormSuccess from './FormSuccess'; import './Form.css'; const Form = () => { const[isSubmitted, setIsSubmitted] = useState(false); {!isSubmitted ? <FormSignup submitForm={submitForm} /> : <FormSuccess/>} function submitForm(){ setIsSubmitted(true); } return ( <> <div className = 'form-container'> <span className='close-btn'>x</span> <div className='form-content-left'> <img src='img/img-2.svg' alt='formimg' className='form-img'/> </div> {!isSubmitted ? (<FormSignup submitForm={submitForm} />) : (<FormSuccess/>)} </div> </> ); }; export default Form;

En App.js solo muestra Formulario. Intentando seguir este tutorial de BrianDesign https://www.youtube.com/watch?v=KGFG-yQD7Dw

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!