๐Ÿ“šย Reference


getDerivedStateFromError(error)


static getDerivedStateFromError(error) {
  return { hasError: true }; // ์—๋Ÿฌ ๋ฐœ์ƒ ์‹œ ๋ Œ๋”๋ง์„ fallback์œผ๋กœ ์ „ํ™˜
}