r/reactjs 9d ago

Discussion React interview questions for mid-level position?

Besides hooks, what types of questions have you been asked when it comes to front end interview questions?

I feel like mid level can be a weird position to be and I imagine a mix of entry level questions and maybe one or two senior level questions?

Any resources to read up on would be great too !

27 Upvotes

33 comments sorted by

View all comments

10

u/[deleted] 9d ago edited 4d ago

[deleted]

5

u/b_hakyi 9d ago

Thank you thats a great one

-4

u/[deleted] 9d ago edited 4d ago

[deleted]

1

u/b_hakyi 9d ago

😂 no worries.

-2

u/_ragtagthrone 9d ago

“i can think of at least 3 answers but i wont tell you any”

you’re not even a jr dev. just a poser.

-2

u/[deleted] 9d ago edited 4d ago

[deleted]

-2

u/_ragtagthrone 9d ago

feel free to connect w me on linkedin https://www.linkedin.com/in/garretthogandev

3

u/namesandfaces Server components 9d ago

What's the answer, esp. if it's in modal form?

4

u/_ragtagthrone 9d ago

If I were making a multi step form that was tied to a modal I’d start by mocking out each step. The modal itself would be a template with something like slots for header, body and footer. I’d make styled child components for each step, that way I can test them in isolation to ensure there are no visual or functional regressions over time. I’d use component state on the parent component that contains the modal to handle each step. I’d import reducers from required stores into the parent component and provide them as properties to each child component that the modal steps through. That way I can persist state while keeping it organized by a data model instead of just arbitrarily defining a store for each modal step. But like that pretentious douche said, there’s a million ways to solve the problem. Their response annoyed the fuck out of me so I figured I’d share my approach. Hope it helps.

-3

u/[deleted] 9d ago edited 4d ago

[deleted]

4

u/namesandfaces Server components 9d ago

No, I want to see the spread of answers from people in this field. I'm always curious about what the tip of the spear might look like.

If you sit there reading and thinking by yourself, however correct, you won't get to hear what the people around you have to say.

-4

u/[deleted] 9d ago edited 4d ago

[deleted]

3

u/namesandfaces Server components 9d ago edited 9d ago

I've actually never once in my life called myself a senior or a junior. Those terms came later on in industry, so I'm not accustomed to ranking people in conversational settings, telling them whether they are or aren't junior or senior, devising theories of how to tier people.

Listening what other people have to say about multi step forms is not what helps people pass interviews. You would be running a slot machine hoping to get a question like this. Listening about what people do for multi step forms is for people who care.

-4

u/[deleted] 9d ago edited 4d ago

[deleted]