KEY NOT FOUND: coverImgAlt
Logo
See All Photos

Glassdoor

Glassdoor

Add an Interview

Interview Question

Front End Engineer Interview

-

Glassdoor

It's a React project done in an online sandbox (codesandbox.io). You will be asked to make an async call to an api end point, imagine something at api.thecatapi (dot) com or similar. The steps are basically to understand how async works in React. Differences in creating via a class component vs a stateless functional component. They want to see that you know the lifecycle of a react component. They want to see that you can paginate, favorite, filter the results.

AnswerAdd Tags

Interview Answer

1 Answer

0

One possible way is to turn it into a React class component because that gives you access to the functions like componentDidMount() and you can run your async fetch functions there to get the data. Then once the data comes back asynchronously, the react component will know to update.

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.

Glassdoor Careers

Cover image for Glassdoor

Since Glassdoor was founded, we have believed in the power of transparency to create change. We were built on the belief that transparency...More

  • Our Values
  • Our Leaders
  • Work Where You Want
This is the employer's chance to tell you why you should work for them. The information provided is from their perspective.