JSPM

react-easy-slider

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q24307F
  • License MIT

A Great React Slider Component

Package Exports

  • react-easy-slider
  • react-easy-slider/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-easy-slider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Introduction

This is a React component by which you can realize an image slider quickly.
Demo: https://swnumaster.github.io/react-easy-slider/
Author: Nathan Jiang (373578963@qq.com)

Installation

npm install react-easy-slider

Usage

    
        import React from 'react';
        import { render } from 'react-dom';
        import ReactEasySlider from 'react-easy-slider';

        let imageList = [
            {url: "https://www.fb.com/slide1.jpg"},
            {url: "https://www.fb.com/slide2.jpg"},
            {url: "https://www.fb.com/slide3.jpg"}
        ];

        const MyComponent = () => (
            
        );

        render(, document.getElementById(node));