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

201
Views
¿Cómo mover un elemento DOM a un componente separado en React?

Estoy tratando de mover un elemento DOM en un componente a un componente separado. Básicamente, el div necesita subir dos niveles principales.

Ubicación actual del elemento DOM

Colocación de objetivos del elemento DOM

Tengo dos componentes en juego:

  1. AuthFlow.js
  2. SignUp.js
 //AuthFlow.js {renderForm()} {formType === 'signUp' && ( // This div needs to move up <div className="mt-6"> <p className="font-body text-white"> Already have an account?{' '} <span className="text-quad cursor-pointer" onClick={() => updateFormType('signIn')} > Sign In </span> </p> </div> )}
 // SignUp.js ... </div> <button className="transition-all transform hover:translate-y-1 rounded-md bg-tertiary py-3 mt-6 cursor-pointer border-2 border-transparent focus:outline-none focus:ring-2 focus:ring-tertiary focus:border-transparent" onClick={signIn} title="Sign In" > Sign in </button> // Eventual placement of the Div I want to move </form>

He buscado en los portales de React, pero no estoy seguro de si ese es el camino a seguir.

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!