Welcome to the front-end technical exercise. The purpose of this is to test your React knowledge by building a fun and simple pokemon app.
First, thank you for considering Apex and for taking the time out of your busy day to interview with us. We know interviewing can be stressful. We are here to help you succeed, both by talking through the problem and making suggestions as you code. We all make typos along the way, and want to help you catch any of those to save time. Please ask questions at any point during the exercise if something is unclear. Take a deep breath, and let's begin.
The purpose of this interview is to test your react knowledge by building a fun and simple application that fetches and displays Pokemon data from PokeAPI.
First, we will go over the acceptance criteria and ask for your solution design. Talk us through what steps that you will take to meet the Acceptance Criteria.
You are creating a simple Pokemon App that allows you to search for any pokemon and add it to your captured list. You will be using the PokeAPI. Pokemon data can be fetched at https://pokeapi.co/api/v2/pokemon/pikachu (Replace "pikachu" with a pokemon name or id). Please view the design below and the acceptance criteria.
- Users can search any pokemon by name or id and display it's information.
- Front-facing image
- Name
- ID/Name
- List all types associated.
- List 4 stats. (HP, Attack, Defense, Speed)
- Capture Button
- Pressing the "Capture" button adds the current Pokemon to list on the right.
- Can capture the same pokemon multiple times.
- Can only capture up to 6 pokemon.
- Pressing the "Capture" button adds the current Pokemon to list on the right.
- Captured List
- Displays all captured Pokemon images stacked vertically.
- Clicking on a captured Pokemon removes it from the list.
- Use react with typescript.
- Use any style library you are comfortable with. (We use Chakra-ui).
- Use additional libraries if needed.
- User experience is important.
- State management is important.
- Styling doesn’t need to match example image but try to make it reasonably nice looking.
- Write unit tests if you have time.
yarn install
yarn dev