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

90
Views
Is there an importation missing?

I am facing a problem with importation because I've created a div input as a component to use in other pages. In this case, sign up page:

<Input 
                    placeholder="Email"
                    name="email"
                    {...register("email")}
 />

But, this input is not receiving this register as a component.

import { InputContainer } from "./styles"

    function Input({placeholder, register, name, error, ...rest}) {
        return (
            <InputContainer isErrored={!!error}>
                <input 
                    placeholder={placeholder} 
                    {...register(name)}
                    {...rest} />
            </InputContainer>
        )
    }
    export default Input

I've received that register is not a function, but I had declared it before, on signup page too:

const {
        register, 
        handleSubmit,
        formState: { errors },
    } = useForm({
        resolver:yupResolver(schema)
    })
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!