react, react-native 라고 해서 별다를 것 없이
javascript 이니까... // 이나 /* */를 사용하면 될 것이라고 생각했다.
그러나 return 영역에서 주석하는 방법은 중괄호를 사용해야한다.
{/* 주석 */}
<View style={styles.container}>
{/* 메인 로고 */}
<Image style={{ marginTop: hp(10), width: wp(100), height: wp(60), alignSelf: "center" }} source={require("./assets/splash.png")} />
<Text style={{ marginTop: hp(5), width: wp(70), textAlign: "center", alignSelf: "center", fontSize: hp(3) }}>
<Text style={{ color: "#BBACF2", fontWeight: "bold" }}>haha</Text> blah blah
</Text>
...
'개발 > Frontend' 카테고리의 다른 글
[HTML] button을 눌러도 submit이 안될 때 (0) | 2023.07.29 |
---|---|
[리액트네이티브] React-Native UI Template (0) | 2023.04.21 |
[Flutter] onPageChanged 에러 (No named parameter with the name 'onPageChanged') 해결 방법 (0) | 2022.08.22 |
[Flutter] Flutter null safety 비활성화 ( can't have a value of 'null' because of its type but the implicit default value is 'null' 에러 해결) (0) | 2022.08.22 |
[Web] 쿼리스트링이란? (0) | 2021.10.17 |
댓글