App.js 689 B

123456789101112131415161718
  1. import React from 'react'
  2. import { SliderImage } from 'react-scrollable-slider'
  3. //import 'react-scrollable-slider/dist/index.css'
  4. const images = ["images/7eda725de98d7b4a23489988a334e726_375.jpeg", "images/fa0cfb2c2f540f33eb179ab1af2a4416_375.jpeg", "static/media/banner_hor2.a5496732.png", "images/7eda725de98d7b4a23489988a334e726_375.jpeg", ].map(img => "https://mo-cosmetics.com/" + img)
  5. const App = () => {
  6. return (
  7. <SliderImage images={images}
  8. className="SliderImage"
  9. onChange={i => console.log('CHANGE TO', i)}
  10. onClick={i => console.log('CLICK ON ', i)}
  11. />
  12. )
  13. }
  14. export default App