createContext 시 null 을 허용할 것인지 #33
healtheloper
started this conversation in
Polls
Replies: 1 comment
-
null을 허용하는데 찬성합니다! ^_^)b 'How to use React Context effectively - 번역글' 글을 보면 Context 를 사용할 때 기본값이 유용한 경우가 생각보다 적고, 주로 Provider 로 감싸여져 있는지, 아닌지를 체크하는 용도로 사용 된다고 하더라구요. 저희도 실질적으로는 그러한 용도로 사용하고 있기 때문에 Radio Componenet PR 코멘트로 의견을 나눴듯이 undefined 보다는 null을 이용하여 좀 더 명시적으로 체크하는 것이 좋다고 생각하여 찬성합니다! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@jindonyy @hemudi @mina-gwak
해당 Discussion 을 연 이유
null 허용 시
장점
단점
3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions