Error in React, inputRef.current undefined

I’m trying to finish the FCC projects and for product landing page I’d like to make a simple authorization form, but I’m learning that it’s not as easy as it seems. I’m learning React from Max Schwarz Müller course on Udemy and currently, I’m getting an error that my emailInputRef.current is undefined and I have no idea how to fix this. Is there anyone who would be so kind and give me an advice? :pray:

Is there a repo? I’m guessing that the emailInputRef hasn’t been set up properly.

Yes, the code is here: Malailua-repo I try learning it according to the instructions and sometimes I just slightly change it and it doesn’t work. Can you find the mistake please? :slight_smile: Do you think it’s possible to use value instead of refs to get rid of the problem?

I’m guessing it’s because of your Input component. I assume it works with a normal input element?

Thank you :slight_smile: it finally works

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.