Cover image for Glassdoor
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.

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

We Are Transparent We are open and honest. We share information – the good and the bad – so we can continuously learn, collaborate and...More

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