I tried to use Array.fill().map() to make many divelement in react, its not working.
before making Array, it wokrs well. but, now nothing is made.
any answers will be thankful. below is my code.
class Gallery extends PureComponent {
makeCarouselCell=()=>{
const cellCount=36
const degPerCell=360/cellCount
const className=this.state.deg===degPerCell-10 ? 'choice' : 'carousel_cell'
return(
<>
{Array(cellCount).fill().map((i)=>{
<div
style={{
backgroundImage: `url('./MYBOX/_${i}.jpg')`,
}}
className={className}>
</div>
})}
</>
)
}
render() {
return (
<>
<div ref={this.carousel} className='carousel'>
<this.makeCarouselCell/>
</div>
</>
)
}
}