選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.tsx 336B

123456789101112
  1. import React from 'react'
  2. import VideoPlayer from './VideoPlayer'
  3. type Props = {
  4. srcs: string[]
  5. }
  6. const VideoGallery: React.FC<Props> = ({ srcs }) => {
  7. return (<><br/>{srcs.map((src, index) => (<React.Fragment key={`video_${index}`}><br/><VideoPlayer src={src}/></React.Fragment>))}</>)
  8. }
  9. export default React.memo(VideoGallery)