aspe

Sub you 개발기 6 & Ollim 프로젝트 시작 본문

Web/Project - Sub you

Sub you 개발기 6 & Ollim 프로젝트 시작

aspe 2022. 2. 9. 04:41

1. p tag 개행 표시 방법

whitespace-pre-line 설정해주면 된다.

2. 작가들을 위한 포트폴리오 관리, 커뮤니티 시스템 프로젝트 Ollim 시작

3. useCallback을 사용해야할 때

But in some cases you need to maintain a single function instance between renderings:

  1. A functional component wrapped inside React.memo() accepts a function object prop
  2. When the function object is a dependency to other hooks, e.g. useEffect(..., [callback])
  3. When the function has some internal state, e.g. when the function is debounced or throttled

Don't forget that useCallback() hook is called every time MyComponent renders. Even useCallback() returning the same function object, still, the inline function is re-created on every re-rendering (useCallback() just skips it).

함수가 다루는 것이 간단하다면 쓸필요가 없다.

4. LocalStroage vs LocalForage

LocalStorage API is synchronous and accepts simple key value strings.

LocalForage leverage this simple interface with Promises to get/set values and gives the ability to store more than converted strings as data.

If you are familiar with the logic of LocalStorage and you are experimenting with something new I suggest you give it a try.

Reference: http://blog.teamtreehouse.com/using-localforage-offline-data-storage

'Web > Project - Sub you' 카테고리의 다른 글

Sub you 개발기 5  (0) 2022.02.03
Sub you 개발기 4  (0) 2022.01.26
Sub you 개발기 3  (0) 2022.01.23
Sub You 개발기 2  (0) 2022.01.21
Sub you 개발기 - 1  (0) 2022.01.11
Comments