React Technical Interview Questions
Know a question that isn't here? Add to the bottom and create a pull request. See a question that you have an answer for? Add a link to a codesandbox demo. Thanks for helping the community!
Goals
Most technical questions are looking to assess:
- Ability to call an API and parse JSON.
- Ability to handle promises.
- Ability to put data into state and use that to render on the page.
- Basic CSS (flexbox, border styles, background, centering a div on page)
- Abiltiy to handle events and gather target's value from input boxes (event.target.value)
- Ability to use hooks such as useState, useEffect.
- Ability to pass the right dependency array to useEffect.
Questions
- Create an app to fetch data from a JSON API. Use this data to render on the page. Provide ability to paginate the results Video
- Create a typeahead component.Video
- Given a mock, use React to render on the page. Check Sample Mocks section
- Create a TO-DO app.
- Infinite scrolling app
- Create a form that gathers user's data and sends it to server.
- Create a tic tac toe game.
- Create a slideshow type app. The data of slides could be given. It contains an image url, and the title of the slide. Left and Right navigation buttons are needed.
- Create a form app that has a different state of UI when a field is selected, has value or is visited. (Uses onFocus, onBlur events)
- Create a ticker that increments value every second.
- Create an app that allows user to click a button 5 times, and times them out afterwards.
- Create an app that uses debouncing / throttling.