Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2장 note #17

Open
dogyeong opened this issue Jul 18, 2023 · 2 comments
Open

2장 note #17

dogyeong opened this issue Jul 18, 2023 · 2 comments

Comments

@dogyeong
Copy link
Contributor

  • 브라우저에서 Empty Cache and Hard Reload 버튼
  • 모달 컴포넌트의 효과적 구현 방식
  • 테이블 컴포넌트의 효과적 구현 방식
  • 컴포넌트 preloading 활용 예시 (+)
  • 이미지/폰트 파일 -> public 폴더? src/assets 폴더?
  • 이미지 파일 네이밍
  • React 18 key prop 강제 리렌더링 (경험 공유)
  • JS requestAnimationFrame
  • 레이아웃 (flow)
  • reflow와 repaint
    • React에서 useEffect와 useLayoutEffect 훅, 활용 예시, (경험 공유)
  • visibility hidden 관련
    • Vue에서 v-show
    • display none와의 구분 및 활용
    • reflow/repaint
  • useEffect 여러 개 있을 때의 작동 순서는?
  • mouseenter vs. mouseover
  • mouseleave vs. mouseout
  • React의 Synthetic Event
  • image preloading, component lazy loading (실무 활용 경험 공유)
@dogyeong
Copy link
Contributor Author

dogyeong commented Jul 18, 2023

Vue에서 v-if vs v-show

Generally speaking, v-if has higher toggle costs while v-show has higher initial render costs. So prefer v-show if you need to toggle something very often, and prefer v-if if the condition is unlikely to change at runtime.

https://vuejs.org/guide/essentials/conditional.html#v-if-vs-v-show

@dogyeong
Copy link
Contributor Author

dogyeong commented Jul 18, 2023

solidjs에서 조건부 렌더링

https://www.solidjs.com/tutorial/flow_show

<Show
  when={loggedIn()}
  fallback={<button onClick={toggle}>Log in</button>}
>
  <button onClick={toggle}>Log out</button>
</Show>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant