Skip to content
This repository was archived by the owner on Jan 5, 2019. It is now read-only.
This repository was archived by the owner on Jan 5, 2019. It is now read-only.

为什么显示的什么都没有? #2

Description

@wangluweb
import React, { Component } from 'react';
import SlideShow from 'react-image-slideshow'

class App extends Component {
    constructor(props){
        super(props);
        this.state = {
            imgsData:[
                {
                    url: 'http://home.southcn.com/h/images/attachement/jpg/site4/20150421/78/9637386486099772286.jpg'
                },
                {
                    url: 'http://home.southcn.com/h/images/attachement/jpg/site4/20150421/28/12022616921377275384.jpg'
                },
                {
                    url: 'http://home.southcn.com/h/images/attachement/jpg/site4/20150421/28/12022616921377275384.jpg'
                }
            ]
        }
    };
    render() {
        return (
            <div >
                <h1>Hello</h1>
                <SlideShow imgs={this.state.imgsData} ref="SlideShow" />
            </div>
        );
    }
}

export default App;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions