import React, { Component } from 'react';
import { Slider } from 'react-slick';
import Home from './Home.js';
import About from './About.js';
class App extends Component {
render() {
var settings = {
dots:true,
};
return (
<div className='app'>
<div className='container'>
<Slider {...settings}>
<Home />
<About />
</Slider>
</div>
</div>
);
}
}
export default App;
所以我不能让我的滑块工作......即使是现成的例子也行不通。有反应引发的错误图片。我正在使用 create-react-app