Day 166 of Learning MERN Stack

์ž‘์„ฑ์ž

์นดํ…Œ๊ณ ๋ฆฌ:

โ† ํ”ผ๋“œ๋กœ
DEV Community ยท Ali Hamza ยท 2026-08-01 ๊ฐœ๋ฐœ(SW)

Ali Hamza

Hello Dev Community! ๐Ÿ‘‹

It is officially Day 166 of my full-stack engineering track! Today, I designed and implemented the active messaging canvas component (ChatContainer.jsx) for my messaging app, QuickChat! ๐Ÿ’ฌ๐Ÿ“ทโšก

Focusing on dynamic chat alignment, text bubble rendering, image attachments, and input controls was today’s core milestone. Here is how I structured the component.

๐Ÿ› ๏ธ Technical Breakdown: ChatContainer & Attachment Pipeline

As captured in my UI and VS Code setup (Screenshots):

1. Dynamic Alignment & Sender Detection

  • Conditioned flexbox directions based on authentication state so sender messages lock to the right while recipient messages render on the left:

javascript

์›๋ฌธ์—์„œ ๊ณ„์† โ†—

์ถ”์ถœ ๋ณธ๋ฌธ ยท ์ถœ์ฒ˜: dev.to ยท https://dev.to/ali_hamza_589ec7b3eb6688d/day-166-of-learning-mern-stack-2c05

์ฝ”๋ฉ˜ํŠธ

๋‹ต๊ธ€ ๋‚จ๊ธฐ๊ธฐ

์ด๋ฉ”์ผ ์ฃผ์†Œ๋Š” ๊ณต๊ฐœ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ•„์ˆ˜ ํ•„๋“œ๋Š” *๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค