프로그래밍/react
[React][에러해결] Text strings must be rendered within a <Text> component
***bmo***
2023. 11. 6. 16:22
반응형
말 그대로 문자열은 <Text>컴포넌트 안에서 렌더링 되어야 한다는 에러.
<Text>실시간{'\n'}현황</Text> -> <Text>{"실시간\n현황"}</Text>
이렇게 변경하니 해결되었다.
반응형