JH 개발 블로그

  • 홈
  • 태그
  • 방명록

material ui keyframes props 1

useStyle makeStyle keyframes에다가 props 로 넘겨주는 법

material ui v4 에서는 keyframes 에 props 를 넘겨주면 애니메이션이 작동하지 않게 된다. 나는 꼭 넘겨주어야 할 일이 생겼기 때문에 정말 한참동안 찾은 방법이다. 나와 같이 헤매는 분들을 위해 공유한다. const defaultProps: StylePropType = { selectedItem, rotate, nbTurn: 9, }; const classes = useStyles(defaultProps)(); 위와 같이 useStyle 인자에 props 를 넘겨준다. 그리고 뒤에 ( ) 를 붙여서 useStyle 의 결괏값(= makeStyle)을 바로 classes 변수에 넘겨주자. import { makeStyles } from "@material-ui/core/styles";..

💎 React 2022.04.18
이전
1
다음
더보기
프로필사진

  • 📊 분류 전체보기 (281)
    • 💻 컴퓨터 개론 (9)
    • 🧚🏻‍♂️ HTML , CSS (17)
    • 🤹🏻‍♀️ Javascript (33)
      • 🥎 Typescript (6)
    • 💎 React (29)
    • 🌿 Node (8)
    • 🌸 GraphQL (13)
    • 🐍 Python (2)
    • 🐦 Flutter (25)
    • 🦜 Swift (17)
    • 👩🏻‍💻 TIL (52)
    • 🏃‍♀️ 코테 연습 (12)
    • 👕 자격증 후기 (4)
    • 🔧 정보처리기사(필기) (1)
    • 💡 자료구조 (21)
    • 🦇 Linux (21)
    • 👯‍♀️ 프로젝트 (2)
    • ⏳ 회고 (5)

Tag

flutter ios webview white screen, flutter webview white, sliverOverlapAbsorber, 권오흠 자료구조, flutter Sliver TabBarView hide, 안드로이드 암시적 인텐트, flutter to ios, flutter unity widget, flutter sliver 탭바 가려짐, cocoapods could not find compatible versions for pod, sliverOverlapInjector, Sliver TabBarView hide, flutter navigationController push ios, flutter 디바운스, flutter unity, arcore 지원, 전화기기 지원 중단, flutter unity 연동, flutter unity webgl, flutter cocoapods could not find compatible versions for pod,

최근댓글

공지사항

  • 공지사항🤗

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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 31

방문자수와주신 분들 🙇🏻‍♀️

  • 오늘 :
  • 어제 :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바