일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- React-Native IOS
- scrollIntoView scrollTo
- RN navitate push
- gsap 기초
- styled component is not working
- SafeArea 커스텀
- js 특정 위치로 이동
- styled component 작동안함
- 웹뷰 페이지 로딩
- styled component 작동 안될때
- React-Native 공부
- 타입스크립트
- safari wiondow.open
- react이론
- React Native SafeArea Custom
- reactnative 웹뷰 페이지 로딩
- styled component
- react
- JS
- 임고미
- react native safeArea
- 퍼블리셔
- 리액트
- 트윈맥스 기초
- slick slider 간격
- 프론트앤드
- input 숫자입력
- gsap
- rn webview page loading
- React Native navigation
Archives
- Today
- Total
목록styled components component cannot create styled-component for component: undefined. (1)
개발공부 임고미
[Styled Component] 적용안되는경우2
결론 : //X const CustomButtom = styled(CommonButton) ``; //O const CustomButtom = styled(props => ) ``; 평소에는 위와 같은 방식으로 하면 잘 작동되는데 안되는경우가 잇다. CustomButton이 CommonButton보다 먼저 생성되는경우이다. 위의 경우에는 styled components component cannot create styled-component for component: undefined. 라는 문구가 뜬다. 이때 위와 같은 방법으로 props을 받았을떄로 컴포넌트를 생성해주면 위의 에러를 맞이하지 않고 잘 해결할 수 있다.
퍼블리싱/라이브러리
2021. 11. 29. 20:41