📜  反应中的 corousal - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:38.990000             🧑  作者: Mango

代码示例1
import React from 'react';
import 'bootstrap/dist/css/bootstrap.css';
import Carousel from 'react-bootstrap/Carousel';

export default function Corousal() {
const images = ["slide-1.jpg","slide-2.jpg"]

const corousalComponent = images.map((image,i) => {
return(
        
            slide
        )
})
return (
    
{corousalComponent}
); }