'How to add Swiper in redux?
var React = require('react');
var Swiper = require('react-swiper');
var MyComponent = require('./my-component');
React.initializeTouchEvents(true);
var Example = React.createClass({
render: function() {
return (
<Swiper component={MyComponent} propForMyComponent="hello world!" onSwipe={this.handleSwipe} />
);
},
handleSwipe: function (e) {
console.log(e);
}
});
module.exports = Example;
(I use this npm install --save react react-swiper command on tabbar but it's not working)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
