reactマルチキャスト図
2750 ワード
import React from 'react';
import Swiper from 'swiper/dist/js/swiper.js'
import 'swiper/dist/css/swiper.min.css'
export default class Find extends React.Component{
constructor(props){
super(props);
this.state={
list:[1,2,3,6,6,8,9,9,42,5]
}
}
componentDidMount(){
var mySwiper = new Swiper ('.swiper-container', {
// direction: 'vertical', //
loop: true, //
//
pagination: {
el: '.swiper-pagination',
},
autoplay:{
delay:500, //500
}
})
}
//jsx
render(){
return (
{
this.state.list.map((value,index)=>{
return(
{value}
)
})
}
)
}
}