blob: 69e0fa357c3637aa9529cde13d440a3f45112c92 [file] [log] [blame]
import { Component } from "react";
import Styles from '../styles/scroller.module.css';
class Scroller extends Component {
constructor(props) {
super(props);
}
render() {
this.props.text = this.props.text.concat(this.props.text);
return (
<div className={Styles.container}>
{
this.props.text.map((item, index) => {
console.log([this.props.text, this.props.text])
return <div className={Styles.item} key={index}>{item}</div>;
})
}
</div>
)
}
}
export default Scroller;