인프런 커뮤니티 질문&답변
inputText = () => {}에 return
작성
·
218
8
//다음과 같이 return()으로 감싸주어야 렌더링됩니다.
inputText = () =>{
return(
this.state.sampleBoolean ?
<Text>sampleBoolean is true</Text>
:
<Text>sampleBoolean is false</Text>
)
}




