Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- javascript코딩테스트
- useEffect
- 인라인블럭
- sort
- 자바스크립트배포
- redux 사용방법
- 6주포트폴리오
- JavaScript
- 자바스크립트
- 카우치코딩
- javascript React
- useParams
- 블럭요소
- couchcoding
- first-child
- 협업프로젝트
- foreach
- redux toolkit
- line-through
- 콜백함수
- Redux
- react
- toString
- db.json
- Redux store
- JSON
- useSearchParams
- React state
- react redux
- React onClick
Archives
- Today
- Total
개발하는 루루언니
슬라이드로 만들고 싶으면? react-multi-carousel 본문
728x90
반응형
react-multi-carousel
Production-ready, lightweight fully customizable React carousel component that rocks supports multiple items and SSR(Server-side rendering) with typescript.. Latest version: 2.8.2, last published: 4 months ago. Start using react-multi-carousel in your proj
www.npmjs.com
슬라이드 만들기
0
npm
npm install react-multi-carousel --save
import ( 내가 만들 슬라이스 파일에)
import Carousel from 'react-multi-carousel';
import 'react-multi-carousel/lib/styles.css';
Minimum working set up. 을 이용해서 만들어보기
import React from 'react'
import Carousel from 'react-multi-carousel';
import 'react-multi-carousel/lib/styles.css';
const responsive = {
superLargeDesktop: {
// the naming can be any, depends on you.
breakpoint: { max: 4000, min: 3000 },
items: 5
},
desktop: {
breakpoint: { max: 3000, min: 1024 },
items: 3
},
tablet: {
breakpoint: { max: 1024, min: 464 },
items: 2
},
mobile: {
breakpoint: { max: 464, min: 0 },
items: 1
}
};
const MoviSlide = ({movies}) => {
return (
<div>
<Carousel responsive={responsive}>
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
</Carousel>;
</div>
)
}
export default MoviSlide
728x90
'컴퓨터 정보 > 리액트' 카테고리의 다른 글
css가 적용안될때 (0) | 2022.11.01 |
---|---|
로딩 스피너 만들기 (0) | 2022.11.01 |
조건부 렌더링 ? 내가 원하는 데이터에서 인덱스를 찾아 보여주고 싶을때 사용 (내맘대로해석) (0) | 2022.10.28 |
Promise.all 은? await을 다 하지말고 한번만 기다렸다 실행해줘 (0) | 2022.10.28 |
React 에서 API키를 가져다 사용할때? (0) | 2022.10.28 |