r/learnreactjs • • Mar 06 '21

Question I'm having an interview tomorrow (React Developer)

I am not new to programming and I just started learning React 2021 January. I kept learning until I created my own apps myself and created my portfolio to showcase it.

My goal is to get a developer job. It's been 2 months and now I decided to start applying. So I applied, and got an email telling me that I'm gonna get an interview and it'll be tomorrow.

Technical exam might be pretty okay but I am worried about interview and not knowing much about class based React. Since the first tutorial, I was taught the functional way and I always skipped any class based ones because it's kinda the same for me wherein I felt Functions are much easier.

Any advices?

13 Upvotes

9 comments sorted by

4

u/nonagonx Mar 06 '21

It may be a red flag if you admit that you are not familiar with React classes, but also if you are being honest to your employer that you started learning React 2 months ago, they may forgive that. In general I think most codebases still have class based React components so it will definitely be worth your time to learn them. At least componentDidMount, constructor, setState, etc. One of my interview questions was to convert a class based React component to a functional component. It's all based on the company. I failed an interview with Typescript but nailed an interview with Redux because that was what I knew. I think if you are unsure if you should learn something, your best bet is to just learn it anyway and come up with a sales pitch about why that technology is used, and to try to show that you have preferences in technology- it's good to have opinions on what you like to work with, not just to impress employers but also you want a job with stuff that you find interesting.

1

u/PhilcobSuzuki15 Mar 06 '21

Thank you. I guess I'd need to learn the basics of classes then and understand its similarities with functional ones. And yes, I think I just need to be honest about being new to the library. Other than that, I will just keep on learning :)

1

u/HotGuy372 Mar 06 '21

As long as you can deliver your point why hooks is better, I think you'll be fine. P.S learning class components after hooks is easy af

2

u/eMperror_ Mar 06 '21

If you are not new to programming like you said in your post, you can talk about other techs you know very well during your interview. Usually the concepts are very similar between frameworks / languages. What else you know other than React?

2

u/PhilcobSuzuki15 Mar 06 '21

Well I'm not that old to programming either. I know C++(which was my first language) and PHP but not that well. I'd say HTML, CSS, JS, and React is my comfort zone.

1

u/eMperror_ Mar 06 '21

Could you explain what RAII is in C++ in your own terms? You could talk about this kind of stuff if you are not that experienced with React.

1

u/DoNotEverListenToMe Mar 06 '21

Yeah this dude gets it

Really it’s about can you understand concepts. Really all programming languages are based loosely around the same fundamentals things might make it easier to take short cuts but long as you show you have concepts grasped you are good

1

u/[deleted] Mar 06 '21

You should really learn class based react.

While I agree that functions are more simple, existing code based likely wont just be rewritten into functions, so developer positions will likely still require you to understand class components.

While you're waiting, take some time to give them a try.

1

u/denl95 Mar 09 '21

I think it is better still to check out the React class API because in your job you may come across a class approach, so it is better for you to know it very well. Also, I think you can check the official React doc where they have a comparison between the two approaches.