Interview Question
Front End Engineer Interview
-
GlassdoorIt'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.