Frontend
Frontend
The frontend is the client-side part of a web application that users see and interact with directly. Based on HTML, CSS, and JavaScript, it builds modern UIs with frameworks such as React, Vue, and Angular.
Frontend
The frontend is the client-side part of a web application that users see and interact with directly. Based on HTML, CSS, and JavaScript, it builds modern UIs with frameworks such as React, Vue, and Angular.
Frontend is everything in a web application that users see and interact with directly. It is code that runs in the browser, implementing structure with HTML, style with CSS, and behavior with JavaScript. It is also called "client-side" and is contrasted with the backend, which is processed on the server.
The core of modern frontend development is component-based architecture. Frameworks such as React, Vue, Angular, and Svelte manage complex interfaces by separating the UI into reusable components. A diverse ecosystem has developed around state management (Redux, Zustand, Pinia), routing, form handling, and more.
Frontend developers must go beyond simply implementing designs and also consider performance optimization, accessibility (a11y), SEO, responsive design, and cross-browser compatibility. As performance metrics such as Core Web Vitals (LCP, FID, CLS) affect search rankings, the importance of technical quality has grown even further.
Recent trends include server components, hybrid rendering (SSR/SSG/ISR), and Edge Computing, which are blurring the boundary between server and client. Meta-frameworks such as Next.js, Nuxt, and SvelteKit provide a development experience close to full-stack, and the role of frontend developers is expanding.
// React μ»΄ν¬λνΈ μμ - μ¬μ©μ νλ‘ν μΉ΄λ
import { useState, useEffect } from 'react';
import styles from './ProfileCard.module.css';
interface User {
id: number;
name: string;
email: string;
avatar: string;
}
export function ProfileCard({ userId }: { userId: number }) {
const [user, setUser] = useState<User | null>(null);
const [isLoading, setIsLoading] = useState(true);
useEffect(() => {
async function fetchUser() {
try {
const response = await fetch(`/api/users/${userId}`);
const data = await response.json();
setUser(data);
} finally {
setIsLoading(false);
}
}
fetchUser();
}, [userId]);
if (isLoading) return <div className={styles.skeleton} />;
if (!user) return <div>μ¬μ©μλ₯Ό μ°Ύμ μ μμ΅λλ€</div>;
return (
<article className={styles.card}>
<img
src={user.avatar}
alt={`${user.name}μ νλ‘ν`}
className={styles.avatar}
loading="lazy"
/>
<h2 className={styles.name}>{user.name}</h2>
<p className={styles.email}>{user.email}</p>
</article>
);
}
/* ProfileCard.module.css */
.card {
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem;
border-radius: 12px;
background: var(--card-bg);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease;
}
.card:hover {
transform: translateY(-4px);
}
.avatar {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 1rem;
}
.name {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.email {
color: var(--text-secondary);
font-size: 0.9rem;
}
/* λ°μν λμμΈ */
@media (max-width: 768px) {
.card {
padding: 1.5rem;
}
}
/* λ€ν¬ λͺ¨λ μ§μ */
@media (prefers-color-scheme: dark) {
.card {
--card-bg: #1e293b;
--text-secondary: #94a3b8;
}
}
Take a mock interview on this topic β WIA SOOM AI Interview Β· Start for free