๋ชฉ๋กSwiperSlide (1)
๐ค ์์งlog ๐ค
[REACT] Swiper ์ฌ์ฉํ์ฌ ํฐ์น์ฌ๋ผ์ด๋ ๊ตฌํํ๊ธฐ
์ข ์ฐ ๋ก ์นดํ ๊ณ ๋ฆฌ ์ด๋ ๋ฐ ํฐ์น์ฌ๋ผ์ด๋๋ฅผ ๊ตฌํํด์ผ ํ๋ ์ํฉ์ด์๋๋ฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ฌ์ฉ์์ด ์ฒ์๋ถํฐ ๊ตฌํํ๊ณ ์ถ์์ง๋ง ์์ง ๋ด์ค๋ ฅ์ผ๋ก ๋ฌด๋ฆฌ,, ์ใธใ ;,, ์ฌ๋ฌ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ๋ง์์ง๋ง ๋๋ Swiper ์ผ๋ก ๊ตฌํํด๋ณด๊ธฐ๋ก ํ์๋ค ! ๐ Swiper ์ค์น npm install swiper ๐ Swiper ์์ ์ฝ๋ import { Swiper, SwiperSlide } from 'swiper/react'; import { Pagination, Mousewheel, Keyboard } from 'swiper'; import 'swiper/css'; import 'swiper/css/pagination'; function () { return ( { console.log(swiper.activeIndex); }} ..
๐ React
2023. 2. 6. 12:34