- 🌲 블로그: 🔗 방문하기
- 📫 이메일 : [email protected]
- 🤾🏻♂️ 취미/관심사: 블로깅 📝, 피아노 🎹, 인테리어 🪑, 청소 🧹, ₿
- 2023.3 ~ current 스트라토 - FE Developer
- 2022.3 ~ 2023.3 인프라큐브 - FE Developer
꾸생의 DevLog(lagacy)
Home Page: https://macjjuni.com
스크롤을 아래로 내려도 헤더가 고정되도록 position: sticky; 속성을 줘야했는데 부모 태그에 overflow: hidden; 속성이 없어야 sticky 속성이 적용된다.
부모 태그인 layout과 body태그에 overflow: hidden; 속성이 없어야 흔들림 현상이 해결되는데, 진퇴양난! 딜레마에 빠지게 됐다..
현재 생각해본 해결방안
Warning: useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes
SSR 환경에서는 useLayoutEffect가 아닌 useEffect를 사용해야함
📌 문제 설명 단어가 공백 한 개 이상으로 구분되어 있는 문자열 my_string이 매개변수로 주어질 때, my_string에 나온 단어를 앞에서부터 순서대로 담은 문자열 배열을
useEffect(() => {
router.events.on('routeChangeStart', handleStart)
}, [router.pathname]) // <-
/src/layout/main/index.tsx
https://github.com/macjjuni/macjjuni.portfolio/blob/main/src/layout/main/index.tsx
base64로 변환해서 표시해줘야함.
src/layout/header/components/navList
<nav className="header-nav">
<ul className="nav-list">
{pages.map((page) => (
<li key={page.id} className="nav-link">
<Link href={page.path} className={pathname === page.path ? 'active' : ''}>
{page.title}
</Link>
</li>
))}
<ToggleButton />
</ul>
</nav>
View 단에는 html 코드를 사용했고 스타일 적용은 src/layout/header/style.ts 에서 Sass 방식으로
태그를 기준으로 적용해놨다. 나중에 스타일 변경이나 Html 구조를 변경할 경우 관리가 힘들어 질 것으로 보아 리팩토링이 필요해보임.컬러 모드를 state 상태로 관리해서 컴포넌트 별 스타일을 적용해줘야 함
Zustand 상태관리 라이브러리를 찍먹해봤다. 작년부터 스멀스멀 인기가 올라가더니 상태관리 라이브러리 하면 Redux, Recoil, Zustand 세 개의 대명사가 떠오르게 됐
프로젝트를 시작하기 전 Hello World!를 찍어보는 것 처럼 블로그에서도 첫 글을 작성해봅니다.
갑작스럽게 권고사직을 받았던 걸 생각하면 취업 시장은 겨울이지만 이직 준비는 언제든 하고 있어야 함. 이번에 대학교 친구들끼리 모여 3명이서 번개마냥 코딩 테스트 알고리즘 스터디를
📌 문제설명 0과 1로만 이루어진 정수 배열 arr가 주어집니다. arr를 이용해 새로운 배열 stk을 만드려고 합니다. i의 초기값을 0으로 설정하고 i가 arr의 길이보다 작
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.