📌  相关文章
📜  如何将carsoul 添加到react 项目 - Javascript 代码示例

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

代码示例1
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import "react-responsive-carousel/lib/styles/carousel.min.css"; // requires a loader
import { Carousel } from 'react-responsive-carousel';

class DemoCarousel extends Component {
    render() {
        return (
            
                

Legend 1

Legend 2

Legend 3

); } } ReactDOM.render(, document.querySelector('.demo-carousel')); // Don't forget to include the css in your page // Using webpack or parcel with a style loader // import styles from 'react-responsive-carousel/lib/styles/carousel.min.css'; // Using html tag: //