aspe

Sub you 개발기 3 본문

Web/Project - Sub you

Sub you 개발기 3

aspe 2022. 1. 23. 00:03

1. firestore().collection("comments").where("__name__", "in", array).get();

array에 존재하는 Document ID에 해당하는 Document를 get하고 싶다면 where"__name__" 를 사용하면 된다.

하지만 이 방법은 array의 크기가 10이 넘어갈 수 없다.

2. Tailwind svg fill when hover

그냥 hover:fill-current 하면 원하는대로 작동하지 않는다.

tailwind.confing.js에 다음과 같이 작성하면 정상 작동한다.

3. Array(length).fill(0).map()

length만큼 jsx를 return 하고 싶을 때 사용한다.

 

4. Object.assign({}, object)

object를 복사 할 때 사용한다.

 

5. textarea tag remove red lines

<textarea spellCheck="false" /> 해주면 빨간줄이 없어진다.

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

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