During the interview, I was mainly asked questions related to front-end web development, focusing on HTML, CSS, and React concepts. The interviewer wanted to evaluate both my theoretical understanding and practical knowledge of building modern web applications.
First, they asked about HTML and CSS fundamentals. Questions included how HTML structures a webpage using elements like headings, forms, images, and semantic tags, and how CSS is used to style these elements. They were particularly interested in how CSS helps in layout design, responsiveness, and visual presentation. Topics such as the box model, positioning, flexbox, and basic responsive design concepts were discussed to understand how well I could design user-friendly interfaces.
One specific practical question was how to center an image on a web page. I explained different approaches using CSS, such as using text-align: center for inline images, margin: auto for block elements, and modern techniques like Flexbox and CSS Grid. This question tested my ability to apply CSS concepts to solve real-world layout problems.
The interview also covered styling frameworks, especially Bootstrap. I was asked how Bootstrap helps in faster UI development using its predefined classes, grid system, and responsive components. I explained how Bootstrap’s grid system works with rows and columns and how it simplifies building responsive layouts without writing excessive custom CSS.
Another major area of discussion was API integration. The interviewer asked how frontend applications communicate with backend services. I explained the concept of APIs, HTTP methods such as GET and POST, and how data is fetched from an API and displayed on the UI. In the context of React, I mentioned using tools like fetch or axios to call APIs and handle responses, along with basic error handling.
A significant portion of the interview focused on React concepts, especially React Hooks. I was asked about commonly used hooks like useState and useEffect. I explained how useState is used to manage component state and how useEffect is used to handle side effects such as API calls or lifecycle events. I also discussed why hooks are important and how they simplify code compared to class components.
Overall, the interview questions were designed to assess my understanding of core frontend technologies, my ability to style and structure web pages, and my practical knowledge of React and API integration. The discussion focused not only on definitions but also on how these concepts are applied in real-time projects, which helped evaluate my problem-solving and implementation skills.