react-lite
react-lite copied to clipboard
Should I install fastclick by myself?
I do not see fastclick list on devDependencies of package.json .
Should I install fastclick by myself? Or, just add alias 'react-tap-event-plugin': 'react-lite/lib/react-tap-event-plugin'?
react-lite/lib/react-tap-event-plugin.js:
'use strict';
var Fastclick = require('fastclick');
module.exports = function injectTapEventPlugin() {
var supportTouch = ('ontouchstart' in document);
if (supportTouch) {
Fastclick.attach(document.body);
}
};
yes, npm install --save fastclick is necessary when use react-lite/lib/react-tab-event-plugin.
@Lucifier129 Why don't include fastclick as react-lite dependency?
@mrdulin react-lite/lib/react-tab-event-plugin is not the normal usage of react-lite, I think it's better to keep independent in package.json.